mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
44 lines
1,016 B
YAML
44 lines
1,016 B
YAML
name: Run unit tests on Linux
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
CGO_CFLAGS_ALLOW: "-O -D__BLST_PORTABLE__"
|
|
CGO_CFLAGS: "-O -D__BLST_PORTABLE__"
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
go-version: [ '1.20', '1.21.x' ]
|
|
# goarch: [amd64, arm64]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Setup Go ${{ matrix.go-version }}
|
|
uses: actions/setup-go@v4
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
- name: Run unit tests
|
|
run: go test -short ./accounts ./cmd/geth ./core ./core/types ./core/vm ./eth/... ./internal/ethapi/... ./miner ./params ./suave/...
|
|
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Set up Go 1.x
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: ^1.21
|
|
id: go
|
|
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Build
|
|
run: make geth
|