39 lines
681 B
YAML
39 lines
681 B
YAML
---
|
|
name: Tests
|
|
|
|
on:
|
|
push:
|
|
tags-ignore:
|
|
- '**'
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
name: Tests
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@v7
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version: stable
|
|
|
|
- name: Test
|
|
run: make test
|
|
|
|
- name: Upload Code Coverage Profile
|
|
uses: codecov/codecov-action@v7
|
|
env:
|
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
|
with:
|
|
files: unit.coverprofile
|
|
flags: unittests
|
|
fail_ci_if_error: true
|
|
verbose: false
|