1
0
mirror of https://github.com/kairos-io/immucore.git synced 2025-05-14 11:00:14 +00:00
immucore/.github/workflows/unit-tests.yaml
renovate[bot] ff8381e8d2
chore(deps): update actions/setup-go action to v5.1.0 ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-06 11:35:57 +01:00

31 lines
769 B
YAML

name: Unit tests
on:
push:
branches:
- main
pull_request:
concurrency:
group: ci-unit-${{ github.head_ref || github.ref }}-${{ github.repository }}
cancel-in-progress: true
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Go environment
uses: actions/setup-go@v5.1.0
with:
go-version-file: go.mod
- name: Run tests
run: go run github.com/onsi/ginkgo/v2/ginkgo --race --covermode=atomic --coverprofile=coverage.out -p -r ./...
- name: Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.out