File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 go-version : 1.24.0
3030
3131 - name : golangci-lint
32- uses : golangci/golangci-lint-action@v7
32+ uses : golangci/golangci-lint-action@v8
3333 with :
3434 args : --timeout 2m
Original file line number Diff line number Diff line change 1- name : " Test services "
1+ name : " Test"
22on :
33 push :
44 branches :
55 - master
66 - main
7- - staging
87 paths-ignore :
98 - ' docs/**'
109 - ' .run/**'
1110 - ' .vscode/**'
12- - ' api/**'
13- - ' features/**'
14- - ' deployments/**'
15- - ' scripts/**'
1611 - ' *.md'
1712
1813 pull_request :
1914 types : [ opened, synchronize ]
2015 branches :
2116 - master
2217 - main
23- - staging
2418 paths-ignore :
2519 - ' docs/**'
2620 - ' .run/**'
2721 - ' .vscode/**'
28- - ' api/**'
29- - ' features/**'
30- - ' deployments/**'
31- - ' scripts/**'
3222 - ' *.md'
3323
3424 workflow_dispatch :
@@ -59,34 +49,11 @@ jobs:
5949 name : code-coverage
6050 path : unit_coverage.out
6151
62- integration :
63- name : " Run integration tests"
64- runs-on : ubuntu-latest
65- steps :
66- - name : Checkout
67- uses : actions/checkout@v4
68-
69- - name : Setup Go
70- uses : actions/setup-go@v5
71- with :
72- go-version : 1.23.0
73-
74- - name : Install dependencies and run tests
75- run : |
76- go mod download
77- go test -v -run 'Integration$' ./... -coverpkg=./... -coverprofile=integration_coverage.out
78-
79- - name : Archive code coverage results
80- uses : actions/upload-artifact@v4
81- with :
82- name : integration-coverage
83- path : integration_coverage.out
84-
8552 code_coverage :
8653 name : " Code coverage report"
8754 if : github.event_name == 'pull_request' # Do not run when workflow is triggered by push to main branch
8855 runs-on : ubuntu-latest
89- needs : [ unit, integration ]
56+ needs : [ unit ]
9057 continue-on-error : true # not critical
9158 permissions :
9259 contents : read
You can’t perform that action at this time.
0 commit comments