Skip to content

Commit

Permalink
Merge pull request #1 from PragmaticEngineering/updating-workflow
Browse files Browse the repository at this point in the history
Update go.yml
  • Loading branch information
James Rhoat authored Mar 17, 2024
2 parents cf7d6cc + c663d08 commit 5007012
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,29 @@ jobs:

build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.21', '1.22' ]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: ${{ matrix.go-version }}

- id: govulncheck
name: Run govulncheck
uses: golang/govulncheck-action@v1
- name: Get official govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@latest
shell: bash
- name: Run govulncheck
run: govulncheck ./...
shell: bash

- name: Test with Go
run: go test ./... -json > TestResults-${{ matrix.go-version }}.json

- name: Upload Go test results
uses: actions/upload-artifact@v4
with:
name: Go-results-${{ matrix.go-version }}
path: TestResults-${{ matrix.go-version }}.json

0 comments on commit 5007012

Please sign in to comment.