Skip to content

Commit f400412

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

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/main.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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: Checkout sources
14+
uses: actions/checkout@v2
15+
- name: Checkout submodule
16+
run: |
17+
git submodule init --update
18+
- name: Install build dependencies
19+
run: |
20+
sudo sed -i 's/Types: deb$/Types: deb deb-src/g' \
21+
/etc/apt/sources.list.d/ubuntu.sources
22+
sudo apt-get update
23+
sudo apt-get -y build-dep libguestfs
24+
- name: Compile the code
25+
run: |
26+
autoreconf -fiv
27+
./configure
28+
make
29+
- name: Run the quick test
30+
run: |
31+
make quickcheck
32+
- name: Run the full tests
33+
run: |
34+
make check

0 commit comments

Comments
 (0)