Skip to content

Commit

Permalink
Expanding OS testing to cover mac and windows (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
bendbennett committed Jul 31, 2023
1 parent 51576a0 commit 8191444
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/ci-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,23 @@ jobs:
go-version-file: 'go.mod'
- run: go mod download
- uses: golangci/golangci-lint-action@639cd343e1d3b897ff35927a75193d57cfcba299 # v3.6.0

test:
name: test (Go v${{ matrix.go-version }})
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
go-version: [ '1.20', '1.19' ]
os:
- macos-latest
- windows-latest
- ubuntu-latest
go-version:
- '1.20'
- '1.19'
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
with:
go-version: ${{ matrix.go-version }}
- run: go mod download
- run: go test -coverprofile=coverage.out ./...
- run: go tool cover -html=coverage.out -o coverage.html
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name: go-${{ matrix.go-version }}-coverage
path: coverage.html
- run: go test -v -cover ./...

0 comments on commit 8191444

Please sign in to comment.