Skip to content

Commit 1e1c14a

Browse files
committed
github: Try adding a basic github CI test
1 parent e7b36e0 commit 1e1c14a

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/main.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Run the job below on every push to master branch.
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
# Runs basic configure, make and make check.
8+
jobs:
9+
tests:
10+
name: Build and run the tests
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Install build dependencies
14+
run: |
15+
sudo sed -i 's/Types: deb$/Types: deb deb-src/g' \
16+
/etc/apt/sources.list.d/ubuntu.sources
17+
sudo apt-get update
18+
sudo apt-get -y build-dep libguestfs
19+
sudo apt-get -y install git
20+
- name: Checkout sources
21+
uses: actions/checkout@v2
22+
- name: Checkout submodule
23+
run: |
24+
git submodule init --update
25+
- name: Compile the code
26+
run: |
27+
autoreconf -fiv
28+
./configure
29+
make
30+
- name: Run the quick test
31+
run: |
32+
make quickcheck
33+
- name: Run the full tests
34+
run: |
35+
make check

0 commit comments

Comments
 (0)