This repository has been archived by the owner on Aug 16, 2024. It is now read-only.
Merge pull request #18 from strvcom/chore/archiving #20
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 | |
on: | |
pull_request: | |
push: | |
branches: | |
- 'master' | |
release: | |
types: [ published ] | |
jobs: | |
go-test: | |
name: Run Go test | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install Go | |
uses: ./.github/actions/setup-go | |
- name: Run Go tests with coverage | |
run: | | |
go test -race -coverprofile=coverage.out -covermode=atomic ./... | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |