mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-23 07:04:35 +00:00
## Why this should be merged These workflows are required by branch protection for release branches, but aren't run automatically so release PRs can't currently be merged. ## How this works Extends the `branches` filters of necessary workflows. ## How this was tested n/a
26 lines
859 B
YAML
26 lines
859 B
YAML
name: Go
|
|
|
|
on:
|
|
push:
|
|
branches: [ main, 'release/**' ]
|
|
pull_request:
|
|
branches: [ main, 'release/**' ]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
go_test_short:
|
|
env:
|
|
FLAKY_REGEX: 'ava-labs/libevm/(eth|eth/tracers/js|eth/tracers/logger|accounts/abi/bind|accounts/keystore|eth/downloader|miner|ethclient|ethclient/gethclient|eth/catalyst)$'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: 1.21.4
|
|
- name: Run flaky tests sequentially
|
|
run: | # Upstream flakes are race conditions exacerbated by concurrent tests
|
|
go list ./... | grep -P "${FLAKY_REGEX}" | xargs -n 1 go test -short;
|
|
- name: Run non-flaky tests concurrently
|
|
run: |
|
|
go test -short $(go list ./... | grep -Pv "${FLAKY_REGEX}");
|