This repository has been archived by the owner on Jul 12, 2024. It is now read-only.
Redirect to cordialsys/crosschain #36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test and coverage | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.18 | |
cache: true | |
# - name: Build | |
# run: go build -v ./... | |
- name: Test | |
run: go test -v -race -coverprofile=coverage.txt -covermode=atomic ./... | |
- name: Coveralls | |
env: | |
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
go install github.com/mattn/goveralls@latest | |
goveralls -coverprofile=coverage.txt -service=github |