mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-21 06:04:33 +00:00
- New workflow triggering only on yaml file changes using the built-in `yamllint` - `.yamllint.yml` configuration added at the root of the project - Fix existing yml files to satisfy ymllint - Ignore go-ethereum original yml files
44 lines
1.3 KiB
YAML
44 lines
1.3 KiB
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/(triedb/pathdb|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}");
|
|
|
|
go_generate:
|
|
env:
|
|
EXCLUDE_REGEX: "ava-labs/libevm/(accounts/usbwallet/trezor)$"
|
|
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 `go generate`
|
|
run: go list ./... | grep -Pv "${EXCLUDE_REGEX}" | xargs go generate;
|
|
|
|
- name: git diff
|
|
run: git diff --exit-code
|