mirror of
https://github.com/rjNemo/underscore
synced 2026-06-06 02:26:42 +00:00
23 lines
620 B
YAML
23 lines
620 B
YAML
name: Tests
|
|
on: [ push, pull_request ]
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
with:
|
|
fetch-depth: 2
|
|
- uses: actions/setup-go@v2
|
|
with:
|
|
go-version: '1.20'
|
|
- name: Run tests with coverage
|
|
run: go test -coverprofile=coverage.out -covermode=count ./...
|
|
- uses: codecov/codecov-action@v2
|
|
with:
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
files: ./coverage.out
|
|
flags: unittests
|
|
name: codecov-umbrella
|
|
fail_ci_if_error: true
|
|
verbose: true
|