tweak: readme #18
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 of the action | |
name: test | |
# trigger on pull_request or push events | |
on: | |
pull_request: | |
push: | |
# pipeline to execute | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
container: | |
image: golang:latest | |
steps: | |
- name: clone | |
uses: actions/checkout@v2 | |
- name: test | |
run: | | |
go test -race -covermode=atomic -coverprofile=coverage.out ./... | |
- name: coverage | |
uses: codecov/codecov-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: coverage.out |