Experimental no more, sa sa? #35
Workflow file for this run
This file contains 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
name: Tests | |
on: | |
push: | |
schedule: | |
- cron: "0 0 7 * *" | |
jobs: | |
build: | |
strategy: | |
matrix: | |
image: [ "ubuntu:latest", "ubuntu:22.04", "archlinux:latest" ] | |
continue-on-error: true | |
runs-on: ubuntu-latest | |
container: | |
image: ${{ matrix.image }} | |
steps: | |
- name: Checkout prepare script | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
sparse-checkout: prepare.sh | |
sparse-checkout-cone-mode: false | |
- name: Prepare build environment | |
run: ./prepare.sh -u | tee -a "$GITHUB_ENV" | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Correct ownership of repository | |
run: chown -R $(id -u):$(id -g) . | |
- name: Build | |
run: make build | |
- name: Check README.md | |
run: tools/is-clean --make --root=doc README.md | |
test: | |
needs: build | |
strategy: | |
matrix: | |
kind: [ "system", "user" ] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Prepare build environment | |
run: ./prepare.sh -us | tee -a "$GITHUB_ENV" | |
- name: Install (${{ matrix.kind }}) | |
run: | | |
if [ "${{ matrix.kind }}" = "user" ]; then | |
./install.sh -u | |
elif [ "${{ matrix.kind }}" = "system" ]; then | |
SUDO=sudo ./install.sh -s | |
else | |
exit 1 | |
fi | |
- name: Run tests | |
run: ./tests.sh |