mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-20 13:44:31 +00:00
* chore: `golangci-lint` CI workflow
* fix: make `golangci-lint` happy
* chore: bump `actions/{checkout,setup-go}` versions
* chore: overhaul `.golanci.yml` config
* fix: all linter issues
* chore: exclude non-libevm linters + change deprecated option
* fix: add overflow check in example
* fix: try again; different local version?
* chore: this is trying my patience
* chore: enable `gci` and fix ordering
* chore: mark `ethclient/gethclient` test as flaky
* chore: mark `eth/catalyst` test as flaky
23 lines
683 B
YAML
23 lines
683 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@v4
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v5
|
|
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|ethclient/gethclient|eth/catalyst)$';
|
|
go list ./... | grep -P "${FLAKY_REGEX}" | xargs -n 1 go test -short;
|
|
go test -short $(go list ./... | grep -Pv "${FLAKY_REGEX}");
|