Skip to content

Commit

Permalink
Run govulncheck in CI (#9)
Browse files Browse the repository at this point in the history
Adds govulncheck to the CI workflow and tests against the same versions
of golang as
[boulder](https://github.com/letsencrypt/boulder/blob/cf770dfdef141c94507200ca803576d530481504/.github/workflows/boulder-ci.yml#L38-L40).
  • Loading branch information
pgporada authored Jul 20, 2023
1 parent 6cc6ce5 commit 52168b2
Showing 1 changed file with 28 additions and 6 deletions.
34 changes: 28 additions & 6 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ permissions:
contents: read

jobs:

integration-tests:
strategy:
matrix:
containerGoVer:
- "1.20"
- "1.21-rc"
runs-on: ubuntu-latest
container: golang:1.20

container: golang:${{ matrix.containerGoVer }}
services:
mysql:
image: mariadb:10.5
Expand All @@ -30,7 +33,6 @@ jobs:
--health-interval 10s
--health-timeout 5s
--health-retries 10
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -40,16 +42,36 @@ jobs:
run: ./test_all.sh

quick-tests:
strategy:
matrix:
containerGoVer:
- "1.20"
- "1.21-rc"
runs-on: ubuntu-latest
container: golang:1.20
container: golang:${{ matrix.containerGoVer }}
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false


- name: Go Build
run: go build -v ./...

- name: Unit Tests
run: go test -v ./...

govulncheck:
strategy:
matrix:
containerGoVer:
- "1.20"
- "1.21-rc"
runs-on: ubuntu-latest
container: golang:${{ matrix.containerGoVer }}
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false

- name: Run govulncheck
run: go run golang.org/x/vuln/cmd/govulncheck@latest ./...

0 comments on commit 52168b2

Please sign in to comment.