Files
evm/.hanzo/workflows/ci.yml
zeekayandHanzo Dev 8f9b7f5a55 Workflows ask for the runner label that exists
One label per runner, spelled <os>-<arch>. The aliases these jobs named
were removed, and a job naming a label no runner carries waits instead of
failing.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-16 01:54:41 -07:00

61 lines
1.3 KiB
YAML

name: Tests
# Forge is the authoritative CI for Lux. Keep one native-runner workflow here;
# the GitHub workflows remain for the GitHub mirror and are not duplicated by
# Forge when this directory exists.
on:
push:
branches: [main, dev]
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
GOWORK: off
CGO_ENABLED: '0'
jobs:
test:
runs-on: [linux-amd64]
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: false
- run: go test ./... -count=1
generated:
runs-on: [linux-amd64]
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: false
- run: go mod tidy
- run: git diff --exit-code
static:
runs-on: [linux-amd64]
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: false
- name: Formatting
run: |
unformatted=$(gofmt -l .)
test -z "$unformatted"
- run: go vet ./...