Skip to content

Commit

Permalink
Reorder cache to start of pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Tit Petric committed Jun 20, 2024
1 parent 070a623 commit 8d1812b
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@ jobs:
path: /usr/local/bin/.
destination: /usr/local/bin

- name: Cache
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-${{ hashFiles('**/go.sum') }}
- name: Install Dependencies and basic hygiene test
id: hygiene
run: |
Expand Down Expand Up @@ -86,14 +96,6 @@ jobs:
if: ${{ github.event_name == 'pull_request' }}
run: git fetch origin ${{ github.base_ref }}

- name: Cache
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run Gateway Tests
id: ci-tests
run: |
Expand Down

0 comments on commit 8d1812b

Please sign in to comment.