From c6ed50b83b671bfa365b7bf7f441bcffe1394529 Mon Sep 17 00:00:00 2001 From: Scott Brenner Date: Fri, 3 Jan 2025 07:35:12 -0800 Subject: [PATCH] GitHub Actions workflows - Reorder steps to cache dependencies (#197) Signed-off-by: Scott Brenner --- .github/workflows/build.yml | 6 +++--- .github/workflows/lint.yml | 6 +++--- .github/workflows/test-python-authn.yml | 6 +++--- .github/workflows/test-python.yml | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 75b3f4e7dd..44e46e658d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,14 +14,14 @@ jobs: os: [ubuntu-latest, macos-latest] runs-on: ${{ matrix.os }} steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Install Go uses: actions/setup-go@v4 with: go-version: ${{ matrix.go-version }} - - name: Checkout code - uses: actions/checkout@v4 - - name: Build AIStore on ${{ matrix.os }} run: | export GOPATH="$(go env GOPATH)" diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 69462f22c7..468ecc3d79 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -17,14 +17,14 @@ jobs: os: [ubuntu-latest] runs-on: ${{ matrix.os }} steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Install Go uses: actions/setup-go@v4 with: go-version: ${{ matrix.go-version }} - - name: Checkout code - uses: actions/checkout@v4 - - name: Install `golangci-lint` uses: golangci/golangci-lint-action@v3 with: diff --git a/.github/workflows/test-python-authn.yml b/.github/workflows/test-python-authn.yml index 8eaa133c03..137b8b58d1 100644 --- a/.github/workflows/test-python-authn.yml +++ b/.github/workflows/test-python-authn.yml @@ -15,14 +15,14 @@ jobs: python-version: ['3.8','3.9','3.10','3.11'] runs-on: ${{ matrix.os }} steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Install Go uses: actions/setup-go@v4 with: go-version: ${{ matrix.go-version }} - - name: Checkout code - uses: actions/checkout@v4 - - name: Remove unnecessary directories to free up space run: | sudo rm -rf /usr/local/.ghcup diff --git a/.github/workflows/test-python.yml b/.github/workflows/test-python.yml index 47c34ad141..278f3e5733 100644 --- a/.github/workflows/test-python.yml +++ b/.github/workflows/test-python.yml @@ -15,14 +15,14 @@ jobs: python-version: ['3.8','3.9','3.10','3.11'] runs-on: ${{ matrix.os }} steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Install Go uses: actions/setup-go@v4 with: go-version: ${{ matrix.go-version }} - - name: Checkout code - uses: actions/checkout@v4 - - name: Remove unnecessary directories to free up space run: | sudo rm -rf /usr/local/.ghcup