Skip to content

Fix coverall issues with parallel build #121

Fix coverall issues with parallel build

Fix coverall issues with parallel build #121

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
if: $

Check failure on line 36 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / Test

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 36, Col: 9): Unexpected symbol: '$'. Located at position 1 within expression: $
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"