feat: added documents #4
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
# This workflow run tests. | |
# It is supposed to be run on each push to main branch, as well as for each. | |
name: tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ '*' ] | |
permissions: | |
contents: read | |
jobs: | |
tests: | |
name: run tests and upload coverage report | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20' | |
cache: false | |
- run: | | |
go test -race -covermode=atomic -coverprofile=coverage.out | |
- uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |