github actions test windows and macos #430
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: go | |
on: | |
push: | |
pull_request: | |
jobs: | |
lint: # <- name | |
strategy: | |
matrix: | |
os: [macos-latest, windows-2019, ubuntu-latest] | |
name: lint | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- uses: golangci/golangci-lint-action@v6 | |
if: ${{ matrix.os == 'windows-2019' }} | |
- uses: golangci/golangci-lint-action@v6 | |
if: ${{ matrix.os != 'windows-2019' }} | |
with: | |
args: --enable goimports | |
test-unit: # <- name | |
strategy: | |
matrix: | |
os: [macos-latest, windows-2019, ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- run: go run github.com/onsi/ginkgo/v2/ginkgo run -r --keep-going --skip-package integration |