Skip to content

✅ (hotfix/new-tests) Add tests to hooks #13

✅ (hotfix/new-tests) Add tests to hooks

✅ (hotfix/new-tests) Add tests to hooks #13

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