Merge pull request #210 from JunNishimura/dependabot/go_modules/githu… #349
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: | |
- '**' | |
jobs: | |
test: | |
name: test | |
strategy: | |
fail-fast: false | |
max-parallel: 3 | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: setup Golang | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.19 | |
- name: get dependencies | |
run: go get -v -t -d ./... | |
- name: test code | |
run: go test ./... | |
test-status: | |
name: test status | |
runs-on: ubuntu-latest | |
needs: test | |
steps: | |
- name: set check status success | |
uses: Sibz/github-status-action@v1 | |
with: | |
context: test-status | |
authToken: ${{ secrets.GITHUB_TOKEN }} | |
state: success |