Skip to content

NETOBSERV-2021 Improve UX #529

NETOBSERV-2021 Improve UX

NETOBSERV-2021 Improve UX #529

Workflow file for this run

name: pull request checks
on:
pull_request:
branches: ['*']
jobs:
build-test:
name: Build, lint, test
runs-on: ubuntu-latest
strategy:
matrix:
go: ['1.23']
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- name: Install make
run: sudo apt -y install make
- name: run build
run: make build && git diff --exit-code
- name: run unit tests
run: make test coverage-report
- name: check clean vendors
run: go mod vendor
- name: Report coverage
if: ${{ matrix.go == '1.23' }}
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: ./cover.out
flags: unittests
fail_ci_if_error: true
verbose: true