mirror of
https://github.com/luxfi/evm.git
synced 2026-09-24 00:27:44 +00:00
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]>
61 lines
1.3 KiB
YAML
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 ./...
|