mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
28 lines
817 B
YAML
28 lines
817 B
YAML
name: CI
|
|
on: [push, pull_request]
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Install Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.17
|
|
- name: "Build binaries"
|
|
run: make all
|
|
- name: "Run tests"
|
|
run: make test
|
|
- name: Upload coverage to Codecov
|
|
uses: codecov/codecov-action@v1
|
|
with:
|
|
file: ./cover.out
|
|
- name: Reproducible build test
|
|
run: |
|
|
make geth
|
|
shasum -a256 ./build/bin/geth > bor1.sha256
|
|
make geth
|
|
shasum -a256 ./build/bin/geth > bor2.sha256
|
|
if ! cmp -s bor1.sha256 bor2.sha256; then
|
|
echo >&2 "Reproducible build broken"; cat bor1.sha256; cat bor2.sha256; exit 1
|
|
fi
|