Skip to content

Commit

Permalink
Merge pull request #13 from oleksandrkhmil/feature/update-ci
Browse files Browse the repository at this point in the history
ci: update versions
  • Loading branch information
oleksandrkhmil authored Dec 6, 2024
2 parents 6704ede + e51e500 commit 1095ffe
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: CI

on:
push:
branches: master
pull_request:
branches: master

permissions:
contents: read
Expand All @@ -20,11 +22,11 @@ jobs:
cache-dependency-path: "**/go.sum"
- name: Setup Swagger
run: |
go install github.com/swaggo/swag/cmd/[email protected].2
go install github.com/swaggo/swag/cmd/swag@0b9e347c196710ea155a147782bf51707a600c2c # https://github.com/swaggo/swag/releases/tag/v1.16.4
swag init -g cmd/main.go
- uses: golangci/golangci-lint-action@v6
- uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # https://github.com/golangci/golangci-lint-action/releases/tag/v6.1.1
with:
version: v1.60
version: v1.61

unit-tests:
name: Unit Tests
Expand All @@ -38,7 +40,7 @@ jobs:
cache-dependency-path: "**/go.sum"
- name: Setup Swagger
run: |
go install github.com/swaggo/swag/cmd/[email protected].2
go install github.com/swaggo/swag/cmd/swag@0b9e347c196710ea155a147782bf51707a600c2c # https://github.com/swaggo/swag/releases/tag/v1.16.4
swag init -g cmd/main.go
- name: Run tests
run: go test -race ./...
Expand All @@ -50,10 +52,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: detect-secrets
uses: reviewdog/[email protected]
uses: reviewdog/action-detect-secrets@ec43c7e1b118c103185508d77db482c818baeec0 # https://github.com/reviewdog/action-detect-secrets/releases/tag/v0.27.1
with:
reporter: github-pr-review
fail-on-error: true
detect_secrets_flags: --exclude-files '.*_test\.go$'

govulncheck:
Expand All @@ -68,9 +69,9 @@ jobs:
cache-dependency-path: "**/go.sum"
- name: Setup Swagger
run: |
go install github.com/swaggo/swag/cmd/[email protected].2
go install github.com/swaggo/swag/cmd/swag@0b9e347c196710ea155a147782bf51707a600c2c # https://github.com/swaggo/swag/releases/tag/v1.16.4
swag init -g cmd/main.go
- name: Run govulncheck
run: |
go install golang.org/x/vuln/cmd/[email protected]
go install golang.org/x/vuln/cmd/govulncheck@4ea4418106cea3bb2c9aa098527c924e9e1fbbb4 # https://go.googlesource.com/vuln/+/refs/tags/v1.1.3
govulncheck -C . -format text ./...

0 comments on commit 1095ffe

Please sign in to comment.