Skip to content

Commit

Permalink
ci: fix
Browse files Browse the repository at this point in the history
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
  • Loading branch information
stv0g committed May 19, 2023
1 parent 84e6659 commit 736f9f1
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:

jobs:
integration:
name: Integration Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -25,14 +26,13 @@ jobs:
- name: Install system dependencies
run: sudo apt-get install -y
libpcap-dev
libpcap-dev

- name: Run integration tests
run: >
sudo --preserve-env env "PATH=$PATH"
run: sudo --preserve-env env "PATH=$PATH"
ginkgo run
-r
--label-filter="integration"
--label-filter='integration'
--procs=4
--compilers=4
--randomize-all
Expand All @@ -56,6 +56,7 @@ jobs:
flags: integration

unit:
name: Unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -75,22 +76,21 @@ jobs:
libpcap-dev

- name: Run unit tests
run: >
ginkgo run
-r
--label-filter="!integration"
--procs=4
--compilers=4
--randomize-all
--randomize-suites
--keep-going
--cover
--coverpkg=./...
--coverprofile=unit_cover.profile
--race
--trace
--json-report=report.json
--timeout=10m
run: ginkgo run
-r
--label-filter='!integration'
--procs=4
--compilers=4
--randomize-all
--randomize-suites
--keep-going
--cover
--coverpkg=./...
--coverprofile=unit_cover.profile
--race
--trace
--json-report=report.json
--timeout=10m

- name: Report unit test coverage to Codecov
uses: codecov/codecov-action@v3
Expand Down

0 comments on commit 736f9f1

Please sign in to comment.