mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-23 23:24:30 +00:00
* fix: run flaky upstream tests sequentially * chore: run flaky tests first to fail early There are fewer of them so they'll fail quickly and allow the CI run to just be restarted.
23 lines
649 B
YAML
23 lines
649 B
YAML
name: Go
|
|
|
|
on:
|
|
push:
|
|
branches: [ libevm ]
|
|
pull_request:
|
|
branches: [ libevm ]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
go_test_short:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.21.4
|
|
- name: Run tests
|
|
run: | # Upstream flakes are race conditions exacerbated by concurrent tests
|
|
FLAKY_REGEX='go-ethereum/(eth|accounts/keystore|eth/downloader|miner)$';
|
|
go list ./... | grep -P "${FLAKY_REGEX}" | xargs -n 1 go test -short;
|
|
go test -short $(go list ./... | grep -Pv "${FLAKY_REGEX}");
|