Skip to content

k3s example

k3s example #30

Workflow file for this run

name: Build and Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
- name: Build
run: make all
- name: Unit Tests
run: go test -v ./... -race -covermode=atomic -coverprofile=coverage.out -coverpkg=./...
- name: Run codacy-coverage-reporter
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
force-coverage-parser: go
coverage-reports: coverage.out