mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
.github/workflows: add github action workflow
This commit is contained in:
parent
bdf5e388ca
commit
90a03445e3
1 changed files with 46 additions and 0 deletions
46
.github/workflows/build-test.yml
vendored
Normal file
46
.github/workflows/build-test.yml
vendored
Normal file
|
|
@ -0,0 +1,46 @@
|
||||||
|
name: go-ethereum workflow
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
tags:
|
||||||
|
- '**'
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Set up Go
|
||||||
|
uses: actions/setup-go@v2
|
||||||
|
with:
|
||||||
|
go-version: 1.20.5
|
||||||
|
- name: Lint
|
||||||
|
run: go run build/ci.go lint
|
||||||
|
- name: Build
|
||||||
|
run: go run build/ci.go install -dlgo
|
||||||
|
|
||||||
|
test:
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest, windows-latest]
|
||||||
|
|
||||||
|
needs: lint
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Set up Go
|
||||||
|
uses: actions/setup-go@v2
|
||||||
|
with:
|
||||||
|
go-version: 1.20.5
|
||||||
|
- name: Install Submodules
|
||||||
|
run: git submodule update --init --depth 1 --recursive
|
||||||
|
- name: Test
|
||||||
|
run: go run build/ci.go test -dlgo
|
||||||
|
|
||||||
Loading…
Reference in a new issue