mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 14:16:44 +00:00
test lint action
This commit is contained in:
parent
fcc75d35be
commit
6e46629fc9
1 changed files with 39 additions and 5 deletions
44
.github/workflows/task.yaml
vendored
44
.github/workflows/task.yaml
vendored
|
|
@ -1,4 +1,4 @@
|
||||||
name: Task workflow
|
name: Task Linux Tests
|
||||||
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
|
@ -8,11 +8,45 @@ on:
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
lint:
|
||||||
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'CI:Build')
|
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'CI:Build')
|
||||||
name: Build
|
name: Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-24.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: echo label
|
- uses: actions/checkout@v4
|
||||||
run: echo "PR with label 'CI:Build' was merged"
|
with:
|
||||||
|
ref: master
|
||||||
|
|
||||||
|
# Cache build tools to avoid downloading them each time
|
||||||
|
- uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: build/cache
|
||||||
|
key: ${{ runner.os }}-build-tools-cache-${{ hashFiles('build/checksums.txt') }}
|
||||||
|
|
||||||
|
- name: Set up Go
|
||||||
|
uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version: 1.23.0
|
||||||
|
cache: false
|
||||||
|
|
||||||
|
- name: Run linters
|
||||||
|
run: |
|
||||||
|
go run build/ci.go lint
|
||||||
|
go run build/ci.go check_generate
|
||||||
|
go run build/ci.go check_baddeps
|
||||||
|
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-24.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Set up Go
|
||||||
|
uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version: 1.24.0
|
||||||
|
cache: false
|
||||||
|
- name: Run tests
|
||||||
|
run: go test -short ./...
|
||||||
|
env:
|
||||||
|
GOOS: linux
|
||||||
|
GOARCH: 386
|
||||||
Loading…
Reference in a new issue