github: Try adding a basic github CI test #9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Run the job below on every push to master branch. | |
| on: | |
| push: | |
| branches: | |
| - master | |
| # Runs basic configure, make and make check. | |
| jobs: | |
| tests: | |
| name: Build and run the tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install build dependencies | |
| run: | | |
| sudo sed -i 's/Types: deb$/Types: deb deb-src/g' \ | |
| /etc/apt/sources.list.d/ubuntu.sources | |
| sudo apt-get update | |
| sudo apt-get -y build-dep libguestfs | |
| sudo apt-get -y install git | |
| - name: Checkout sources | |
| uses: actions/checkout@v2 | |
| - name: Checkout submodule | |
| run: | | |
| git submodule update --init | |
| - name: Compile the code | |
| run: | | |
| autoreconf -fiv | |
| ./configure | |
| make | |
| - name: Run the quick test | |
| run: | | |
| make quickcheck | |
| - name: Run the full tests | |
| run: | | |
| make check |