Skip to content

Commit e7ccfe1

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

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/main.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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+
# Git is needed to run git submodule command.
20+
# json-c is apparently missing from the Ubuntu package deps.
21+
sudo apt-get -y install git libjson-c-dev
22+
- name: Checkout sources
23+
uses: actions/checkout@v2
24+
- name: Checkout submodule
25+
run: |
26+
git submodule update --init
27+
- name: Compile the code
28+
run: |
29+
autoreconf -fiv
30+
./configure
31+
make
32+
- name: Run the quick test
33+
run: |
34+
make quickcheck
35+
- name: Run the full tests
36+
run: |
37+
make check

0 commit comments

Comments
 (0)