Skip to content

Commit

Permalink
Merge pull request #28 from Automattic/update/test-workflow
Browse files Browse the repository at this point in the history
ci: update test workflow
  • Loading branch information
sjinks authored Jun 20, 2024
2 parents 30c8fc9 + bde1074 commit 9976231
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,10 @@ jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- name: Cache Go Dependencies
# https://github.com/actions/setup-go/issues/130
# See: https://github.com/actions/cache/blob/95f200e41cfa87b8e07f30196c0df17a67e67786/examples.md#go---modules
uses: actions/cache@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
go-version-file: go.mod
- run: go version
- run: go build
- run: go test ./...

0 comments on commit 9976231

Please sign in to comment.