CI parallel tests #56
Workflow file for this run
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: | |
tags: [ 'v[0-9]+.[0-9]+-tetrate-v[0-9]+' ] # v1.16-tetrate-v7 | |
pull_request: | |
branches: | |
- main | |
- release-** | |
env: | |
GOPROXY: https://proxy.golang.org | |
jobs: | |
# All test running sequentially take around ~2h. | |
# Sppliting them in groups that take more or less the same time makes PR's readiness faster | |
test: | |
strategy: | |
matrix: | |
label: | |
- "group:1" | |
- "group:2" | |
- "group:3" | |
- "group:4" | |
- "group:5" | |
runs-on: ubuntu-latest | |
env: | |
PLATFORMS: linux/amd64 | |
TEST_LABEL: ${{ matrix.label }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- run: make test |