Skip to content

Cancel in progress builds when pushing new commits to the same PR #57

Cancel in progress builds when pushing new commits to the same PR

Cancel in progress builds when pushing new commits to the same PR #57

Workflow file for this run

name: Build
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
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