2022-05-08 13:13:45 +02:00
|
|
|
name: Go
|
|
|
|
|
|
|
|
on:
|
|
|
|
- push
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
name: Test
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
environment: test
|
|
|
|
steps:
|
|
|
|
- uses: actions/setup-go@v3
|
|
|
|
with:
|
|
|
|
go-version: 1.18
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: go test
|
|
|
|
env:
|
|
|
|
TOKEN_INDEX: ${{ secrets.TOKEN_INDEX }}
|
|
|
|
RPC_PROVIDER: ${{ secrets.RPC_PROVIDER }}
|
|
|
|
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
|
2022-05-17 19:36:30 +02:00
|
|
|
BATCH_CONTRACT: ${{ secrets.BATCH_CONTRACT }}
|
2022-05-08 13:13:45 +02:00
|
|
|
run: go test -v -covermode atomic -coverprofile=covprofile ./...
|
|
|
|
- name: install goveralls
|
|
|
|
run: go install github.com/mattn/goveralls@latest
|
|
|
|
- name: send coverage
|
|
|
|
env:
|
|
|
|
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
run: goveralls -coverprofile=covprofile -service=github
|