mirror of
https://github.com/Neur0toxine/whprintf.git
synced 2024-12-05 03:16:06 +03:00
28 lines
730 B
YAML
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
|