mirror of
https://github.com/dynup/kpatch
synced 2024-12-22 05:10:01 +00:00
github actions: unit tests
Add unit tests through github actions. This is exactly the same as our travis tests but using github actions instead. Signed-off-by: Artem Savkov <asavkov@redhat.com>
This commit is contained in:
parent
6321c9ab5e
commit
5abe5f666b
26
.github/workflows/unit.yml
vendored
Normal file
26
.github/workflows/unit.yml
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
name: build and unit tests
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
cflags: [ "", "-O2", "-O3" ]
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
CFLAGS: ${{ matrix.cflags }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: dependencies
|
||||
run: sudo apt-get install -y libelf-dev linux-headers-$(uname -r) shellcheck elfutils
|
||||
- name: make
|
||||
run: make
|
||||
- name: submodule update
|
||||
run: git submodule update --init
|
||||
- name: make unit
|
||||
run: make unit
|
||||
- name: make check
|
||||
run: make check
|
||||
- name: install
|
||||
run: sudo make install
|
Loading…
Reference in New Issue
Block a user