Bif 1578 new go version #72
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: test | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
ci-test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ macos-latest, windows-latest, ubuntu-latest ] | |
go: [ 1.21, 1.22, 1.23 ] | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@v4 | |
- name: Set up golang with version ${{ matrix.go }} | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Run tests | |
run: go test -v -coverprofile=covprofile ./... | |
- name: Send coverage | |
if: ${{ matrix.os == 'macos-latest' && matrix.go == '1.14'}} | |
uses: shogo82148/[email protected] | |
with: | |
path-to-profile: covprofile |