Skip to content

Commit 96630a2

Browse files
committed
chore: modify ci workflow configuration
1 parent 85febf8 commit 96630a2

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

.github/workflows/makefile.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,31 +31,33 @@ jobs:
3131
make build
3232
./g -v
3333
34-
- name: Run gosec
35-
uses: securego/gosec@master
34+
- name: Run coverage
35+
run: make test-coverage
36+
37+
- name: Upload coverage to Codecov
38+
uses: codecov/codecov-action@v4
3639
with:
37-
args: -exclude=G107,G204,G304,G401,G505 -quiet ./...
40+
fail_ci_if_error: true # optional (default = false)
41+
files: ./coverage.txt # optional
42+
flags: unittests # optional
43+
token: ${{ secrets.CODECOV_TOKEN }} # required
44+
verbose: true # optional (default = false)
45+
3846

3947
- name: Run staticcheck
4048
uses: dominikh/staticcheck-action@v1
4149
with:
4250
version: "latest"
43-
install-go: false
51+
install-go: true
4452

4553
- name: Run golangci-lint
4654
uses: golangci/golangci-lint-action@v6
4755
with:
4856
version: "latest"
4957

50-
- name: Run coverage
51-
run: make test-coverage
52-
53-
- name: Upload coverage to Codecov
54-
uses: codecov/codecov-action@v4
58+
- name: Run gosec
59+
uses: securego/gosec@master
5560
with:
56-
fail_ci_if_error: true # optional (default = false)
57-
files: ./coverage.txt # optional
58-
flags: unittests # optional
59-
token: ${{ secrets.CODECOV_TOKEN }} # required
60-
verbose: true # optional (default = false)
61+
args: -exclude=G107,G204,G304,G401,G505 -quiet ./...
62+
6163

0 commit comments

Comments
 (0)