Skip to content

feat: change BLOCKHASH opcode behavior to `keccak(chain_id || block… #78

feat: change BLOCKHASH opcode behavior to `keccak(chain_id || block…

feat: change BLOCKHASH opcode behavior to `keccak(chain_id || block… #78

Workflow file for this run

on:
push:
branches: # we keep this to avoid triggering `push` & `pull_request` every time we update a PR
- main
- staging
- develop
- alpha
- new
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
name: CI
jobs:
build:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.20.x
- name: Checkout code
uses: actions/checkout@v2
- name: Build
run: |
make geth
# check:
# if: github.event.pull_request.draft == false
# runs-on: ubuntu-latest
# steps:
# - name: Install Go
# uses: actions/setup-go@v2
# with:
# go-version: 1.20.x
# - name: Checkout code
# uses: actions/checkout@v2
# - name: Lint
# run: |
# rm -rf $HOME/.cache/golangci-lint
# make lint
# goimports-lint:
# if: github.event.pull_request.draft == false
# runs-on: ubuntu-latest
# steps:
# - name: Install Go
# uses: actions/setup-go@v2
# with:
# go-version: 1.20.x
# - name: Install goimports
# run: go install golang.org/x/tools/cmd/goimports@latest
# - name: Checkout code
# uses: actions/checkout@v2
# - run: goimports -local github.com/scroll-tech/go-ethereum/ -w .
# - run: go mod tidy
# # If there are any diffs from goimports or go mod tidy, fail.
# - name: Verify no changes from goimports and go mod tidy
# run: |
# if [ -n "$(git status --porcelain)" ]; then
# exit 1
# fi
test:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.20.x
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: |
go get ./...
make test
# - name: Upload coverage report
# run: bash <(curl -s https://codecov.io/bash)