mirror of
https://github.com/grassrootseconomics/cic-go.git
synced 2024-11-22 05:56:46 +01:00
Mohamed Sohail
7731a23e35
* update: (cic_net) add new methods and tests * add: write tx methods and tests - add ci for testing - coveralls for coverage * ci: add test environment * ci: expose secrets to env * docs: add badges
27 lines
731 B
YAML
27 lines
731 B
YAML
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 }}
|
|
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 |