bump circle ci image version to fix test dependency. #56
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 gosn-v2 | |
on: | |
push: | |
branches: [ master, main ] | |
pull_request: | |
branches: [ master, main ] | |
jobs: | |
test: | |
concurrency: | |
group: test | |
cancel-in-progress: true | |
strategy: | |
max-parallel: 1 | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- | |
name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.17 | |
- | |
name: Tests | |
run: | | |
go mod tidy | |
go test -cover -v -failfast -p 1 $(go list ./...) | |
env: | |
SN_SERVER: ${{ secrets.SN_SERVER }} | |
SN_EMAIL: ${{ secrets.SN_EMAIL }} | |
SN_PASSWORD: ${{ secrets.SN_PASSWORD }} |