whprintf/.github/workflows/build.yml
2021-10-14 18:27:22 +03:00

28 lines
730 B
YAML

name: build
on:
push:
pull_request:
branches: [master]
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Go 1.17
uses: actions/setup-go@v2
with:
go-version: ^1.17
- name: Build
run: make build
- name: Tests
run: go test ./... -v -race -cover -covermode=count -coverprofile=coverage.txt
- name: Upload Coverage
uses: codecov/codecov-action@v1.0.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.txt