Skip to content

Merge pull request #32 from e-identification/chore/fix-coveralls-para… #125

Merge pull request #32 from e-identification/chore/fix-coveralls-para…

Merge pull request #32 from e-identification/chore/fix-coveralls-para… #125

Workflow file for this run

on: [push, pull_request]
name: Test
jobs:
test:
strategy:
matrix:
go-version: ['1.21.x', '1.22.x']
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies
run: |
go mod download
- name: Test
run: go test -v -race $(go list ./...) -coverprofile=profile.cov
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
file: profile.cov
parallel: true
flag-name: ${{ join(matrix.*, ' ') }}
finish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Close parallel build
uses: coverallsapp/github-action@v2
with:
parallel-finished: true
carryforward: "1.21.x ubuntu-latest,1.21.x macos-latest,1.22.x ubuntu-latest,1.22.x macos-latest"