Skip to content

Backport to v1.5.x #2053

Backport to v1.5.x

Backport to v1.5.x #2053

Workflow file for this run

name: Unit tests
on:
pull_request:
push:
branches:
- main
concurrency:
group: tests-${{ github.head_ref || github.ref }}-${{ github.repository }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-test-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-test-go-${{ hashFiles('**/go.sum') }}
- name: Run tests
run: make unit-tests
- name: Codecov
uses: codecov/codecov-action@v4
with:
file: ./coverage.out