Skip to content

readme: project links #351

readme: project links

readme: project links #351

Workflow file for this run

name: Linting and Unit Tests
# This makes sure only one action triggers the job
on:
pull_request:
branches:
- "*"
push:
branches:
- main
jobs:
lint:
strategy:
fail-fast: false
matrix:
go:
- 21
- 22
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.${{matrix.go}}.x
- name: Install golangci-lint
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.56.2
- name: Run lint checks on the source with go 1.${{matrix.go}}.x
run: make check
unit-tests:
strategy:
fail-fast: false
matrix:
go:
- 21
- 22
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: actions/setup-go@v5
with:
go-version: 1.${{matrix.go}}.x
- name: Run unit tests on go 1.${{matrix.go}}.x
run: make test
- name: Send coverage to codecov.io for go v1.21.x
if: matrix.go == 21
run: bash <(curl -s https://codecov.io/bash)
govulncheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.21.x
- name: Install govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@latest
- name: Run govulncheck
continue-on-error: true
run: govulncheck ./...
build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run build test
run: make build-in-podman