File tree Expand file tree Collapse file tree 1 file changed +8
-21
lines changed Expand file tree Collapse file tree 1 file changed +8
-21
lines changed Original file line number Diff line number Diff line change 1+ name : backend-api-unit-test
12
2- name : Backend-API-Unit-Test
33on :
44 push :
55 paths :
1414 - ' backend/pkg/api/data_access/**'
1515 branches :
1616 - ' *'
17-
18- concurrency :
19- group : ${{ github.workflow }}-${{ github.ref }}
20- cancel-in-progress : true
21-
22- permissions :
23- contents : read
24- pull-requests : read
25- checks : write
26-
2717jobs :
28- build :
29- name : api-unit-test
18+ run-tests :
3019 runs-on : ubuntu-latest
3120 steps :
3221 - uses : actions/checkout@v3
3322 - uses : actions/setup-go@v4
3423 with :
35- go-version-file : ' backend/go.mod'
36- cache-dependency-path : ' backend/go.sum'
37- - name : Test with the Go CLI
38- working-directory : backend
39- run :
40- go test ./pkg/api/handlers/... ./pkg/api/data_access/...
41-
42-
24+ go-version-file : ' backend/'
25+ cache-dependency-path : backend/go.sum
4326
27+ - name : unit tests
28+ working-directory : ./backend
29+ run :
30+ go test ./pkg/api/handlers/... ./pkg/api/data_access/...
You can’t perform that action at this time.
0 commit comments