Skip to content

fix: Builds to use parallel checks #578

fix: Builds to use parallel checks

fix: Builds to use parallel checks #578

Workflow file for this run

on: [push, pull_request]
name: Build
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.21', '1.22' ]
name: Go ${{ matrix.go }} build
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Setup go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}
- name: Cache Build Dependencies # Speeds up subsquent builds
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: go-${{ hashFiles('**/go.sum') }}
restore-keys: |
go-
- name: Build
run: go build -v .
- name: Test
run: go test -v -race -covermode atomic -coverprofile=profile.cov ./...
- name: Send Coverage
uses: shogo82148/actions-goveralls@v1
with:
parallel: true
flag-name: Go-${{ matrix.go }}
path-to-profile: profile.cov
finish:
needs: test

Check failure on line 42 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Build

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 42, Col: 12): Job 'finish' depends on unknown job 'test'.
runs-on: ubuntu-latest
steps:
- uses: shogo82148/actions-goveralls@v1
with:
parallel-finished: true