Merge pull request #22 from madflojo/singleinstance #66
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: tests | |
on: | |
push: | |
tags: | |
- v* | |
branches: | |
- actions | |
- main | |
pull_request: | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.18 | |
- name: Install cover | |
run: go get golang.org/x/tools/cmd/cover | |
- name: Install goveralls | |
run: go get -u github.com/mattn/goveralls | |
- name: Test | |
run: go test --race -v -covermode=atomic -coverprofile=coverage.out ./... | |
- name: Upload coverage reports to Codecov | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
slug: madflojo/tasks |