Skip to content

Add pre-commit support #226

Add pre-commit support

Add pre-commit support #226

Workflow file for this run

on:
pull_request:
branches: [master]
push:
branches: [master]
jobs:
test:
strategy:
matrix:
go-version:
- 1.19.x
platform:
- ubuntu-latest
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
- name: Report coverage
uses: codecov/codecov-action@v1
with:
file: coverage.txt
fail_ci_if_error: true