Browse Source

GitHub Actions: split jobs, add end-to-end testing

tags/v1.3.0
dump_stack() 1 year ago
parent
commit
f4a8b75244
Signed by: Mikhail Klementev <blame@dumpstack.io> GPG Key ID: BE44DA8C062D87DC
1 changed files with 34 additions and 1 deletions
  1. 34
    1
      .github/workflows/ubuntu.yml

+ 34
- 1
.github/workflows/ubuntu.yml View File

@@ -4,6 +4,7 @@ on: [push]

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
@@ -11,6 +12,12 @@ jobs:
- name: Build
run: go build

test-unit:
name: Unit Testing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1

- name: Install dependencies for tests
run: |
sudo apt-get update
@@ -19,5 +26,31 @@ jobs:
- name: Bootstrap
run: ./tools/qemu-debian-img/bootstrap.sh

- name: Test
- name: Unit Testing
run: go test -parallel 1 -v ./...

test-end-to-end:
name: End-to-End Testing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1

- name: Build
run: go build

- name: Install dependencies for tests
run: |
sudo apt-get update
sudo apt-get install qemu

- name: End-to-End Testing [Kernel Module]
run: |
cd examples/kernel-module
../../out-of-tree kernel autogen --max=1
../../out-of-tree pew --qemu-timeout=10m

- name: End-to-End Testing [Kernel Exploit]
run: |
cd examples/kernel-exploit
../../out-of-tree kernel autogen --max=1
../../out-of-tree pew --threshold=0 --qemu-timeout=10m

Loading…
Cancel
Save