Skip to content

Commit

Permalink
ci: set go-setup cache key (#1278)
Browse files Browse the repository at this point in the history
imp
  • Loading branch information
yk-eukarya authored Oct 22, 2024
1 parent afe6c7a commit 06366b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache-dependency-path: server/go.mod
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
Expand All @@ -35,6 +36,7 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache-dependency-path: server/go.mod
- name: check forgotten translations
working-directory: server
run: make i18n-ci
Expand All @@ -53,6 +55,7 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache-dependency-path: server/go.mod
- name: test
run: go test ./... -v -race -coverprofile=coverage.txt -covermode=atomic -timeout 10m
working-directory: server
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci_worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache-dependency-path: worker/go.mod
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
Expand All @@ -36,6 +37,7 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache-dependency-path: worker/go.mod
- name: test
run: go test ./... -v -race -coverprofile=coverage.txt -covermode=atomic -timeout 10m
working-directory: worker
Expand Down

0 comments on commit 06366b3

Please sign in to comment.