Skip to content

Commit bf022c3

Browse files
committed
use go-cache for github actions pipeline
1 parent 08050b7 commit bf022c3

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

.github/workflows/backend-integration-test.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@ jobs:
2626
name: integration-test
2727
runs-on: self-hosted
2828
steps:
29-
- uses: actions/checkout@v3
30-
- uses: actions/setup-go@v4
29+
- uses: actions/checkout@v4
30+
- uses: actions/setup-go@v5
3131
with:
3232
go-version-file: 'backend/go.mod'
3333
cache-dependency-path: 'backend/go.sum'
34-
- name: Test with the Go CLI
34+
cache: true
35+
- name: Swagger
36+
run: |
37+
go install github.com/swaggo/swag/cmd/swag@latest
38+
swag init --ot json -o ./pkg/api/docs -d ./pkg/api/ -g ./handlers/public.go
39+
- name: Tests
3540
working-directory: backend
36-
run:
37-
go install github.com/swaggo/swag/cmd/swag@latest && swag init --ot json -o ./pkg/api/docs -d ./pkg/api/ -g ./handlers/public.go
38-
go test -failfast ./pkg/api/... -config "${{ secrets.CI_CONFIG_PATH }}"
39-
40-
41-
41+
run: go test -failfast ./pkg/api/... -config "${{ secrets.CI_CONFIG_PATH }}"

backend/pkg/api/api_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ func teardown() {
7070

7171
func setup() error {
7272
configPath := flag.String("config", "", "Path to the config file, if empty string defaults will be used")
73-
7473
flag.Parse()
7574

7675
// terminate any currently running postgres instances

0 commit comments

Comments
 (0)