Skip to content

Commit

Permalink
Fix actions cache (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
trejjam authored Mar 20, 2024
1 parent 85aaec5 commit ec42bb0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@ jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22.1

- name: Check out source code
uses: actions/checkout@v4
check-latest: true
cache-dependency-path: |
src/go.sum
- name: Build
env:
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/nightly-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22.1

- name: Check out source code
uses: actions/checkout@v4
check-latest: true
cache-dependency-path: |
src/go.sum
- name: Fetch all history for all tags and branches
run: git fetch --prune --unshallow
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,16 @@ jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22.1

- name: Check out source code
uses: actions/checkout@v4
check-latest: true
cache-dependency-path: |
src/go.sum
- name: Build
env:
Expand Down

0 comments on commit ec42bb0

Please sign in to comment.