Skip to content

docs: update a template of unit file for systemd and add comment #17

docs: update a template of unit file for systemd and add comment

docs: update a template of unit file for systemd and add comment #17

Workflow file for this run

name: Build and Test
on:
push:
branches: [ '**' ]
paths:
- '.github/workflows/**'
- 'main.go'
- 'go.*'
- 'rcap/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
- name: Install required packages
run: |
sudo apt update
sudo apt install -y libpcap-dev
- name: Build
run: go build -v ./...
- name: Test
run: go test -v -race -covermode=atomic -coverprofile=coverage.out ./...
- name: Upload code coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true