mirror of
https://github.com/dynup/kpatch
synced 2024-12-23 21:52:07 +00:00
5abe5f666b
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>
27 lines
603 B
YAML
27 lines
603 B
YAML
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
|