Skip to content

Merge pull request #5 from Otoru/hotfix/new-tests #14

Merge pull request #5 from Otoru/hotfix/new-tests

Merge pull request #5 from Otoru/hotfix/new-tests #14

Workflow file for this run

name: Test coverage
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go 1.x
uses: actions/setup-go@v4
with:
go-version: stable
- name: Get dependencies
run: go get -v -t -d ./...
- name: Test
run: go test -v ./... -coverprofile=coverage.txt -covermode=atomic
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.txt