Enable CI with github actions

This commit is contained in:
maskpp 2022-01-06 15:51:00 +08:00 committed by Haichen Shen
parent de7ed6af40
commit 20ce5c09fb

22
.github/workflows/l2geth_ci.yml vendored Normal file
View file

@ -0,0 +1,22 @@
on: [pull_request]
name: Continuous Integration
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.17.x
- name: Checkout code
uses: actions/checkout@v2
- name: Lint
run: |
rm -rf $HOME/.cache/golangci-lint
make lint
- name: Test
run: |
go get ./...
make test
- name: Upload coverage report
run: bash <(curl -s https://codecov.io/bash)