Skip to content

unfocus test

unfocus test #33

Workflow file for this run

# SPDX-FileCopyrightText: 2023 Steffen Vogel <post@steffenvogel.de>
# SPDX-License-Identifier: Apache-2.0
name: Test
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: go.mod
check-latest: true
- name: Install Go dependencies
run: |
go install github.com/onsi/ginkgo/v2/ginkgo@v2.9.0
- name: Install system dependencies
run: sudo apt-get install -y
libpcap-dev
- name: Build
run: go build -v ./...
- name: Run tests
run: sudo --preserve-env env "PATH=$PATH"
ginkgo run
-r
--procs=4
--compilers=4
--randomize-all
--randomize-suites
--keep-going
--cover
--coverpkg=./...
--coverprofile=cover.profile
--race
--trace
--json-report=report.json
--timeout=10m
env:
# Pass token via environment variable to avoid GitHub API rate-limit
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Report test coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: cover.profile