Merge pull request #174 from nao1215/dependabot/go_modules/github.com… #203
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: MultiPlatformUnitTest | |
on: | |
workflow_dispatch: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
unit_test: | |
name: Unit test (linux) | |
strategy: | |
matrix: | |
os: | |
- "ubuntu-latest" | |
- "windows-latest" | |
- "macos-latest" | |
go: | |
- "1" | |
- "1.23" | |
- "1.22" | |
- "1.21" | |
- "1.20" | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Run tests with coverage report output | |
run: go test -cover -coverpkg=./... -coverprofile=coverage.out ./... | |