Skip to content

Commit

Permalink
GH Actions: let actions/setup-go fetch modules automatically
Browse files Browse the repository at this point in the history
This should also fix the following warning by the `actions/setup-go@v5`
action:

> Warning: Restore cache failed: Dependencies file is not found in
> /home/runner/work/kaitai_struct_go_runtime/kaitai_struct_go_runtime.
> Supported file pattern: go.sum
  • Loading branch information
generalmimon committed Mar 28, 2024
1 parent 7e91ffa commit 2f48aed
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,13 @@ jobs:
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v4

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

- uses: actions/checkout@v4

- name: Get dependencies
run: go mod download

- name: Test
run: go test -v ./...

Expand Down

0 comments on commit 2f48aed

Please sign in to comment.