fix: update branch in wf (#170) #261
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: Build | |
on: | |
push: | |
branches: | |
- v4 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
version: [1.13, 1.15, 1.16] | |
steps: | |
- uses: actions/checkout@v4 | |
name: Checkout code | |
- uses: actions/checkout@v4 | |
name: Checkout client specifications | |
with: | |
repository: Unleash/client-specification | |
ref: refs/tags/v5.1.0 | |
path: testdata/client-specification | |
- uses: actions/setup-go@v5 | |
name: Setup go | |
with: | |
go-version: ${{ matrix.version }} | |
- name: Get deps | |
run: go get -t -v ./... | |
- name: Go vet | |
run: go vet ./... | |
- name: Run spec tests | |
run: go test -v ./... -tags='norace' | |
- name: Run all tests with race detection | |
timeout-minutes: 1 | |
run: go test -race -covermode atomic -coverprofile=profile.cov -v ./... -tags='!norace' | |
- name: Send coverage | |
uses: shogo82148/actions-goveralls@v1 | |
with: | |
path-to-profile: profile.cov | |
flag-name: Go-${{ matrix.version }} | |
parallel: true | |
# notifies that all test jobs are finished. | |
finish: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: shogo82148/actions-goveralls@v1 | |
with: | |
parallel-finished: true |