-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (54 loc) · 1.4 KB
/
tests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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
continue-on-error: true
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
run: |
if [ "${{ matrix.kind }}" = "user" ]; then
./install.sh -u
elif [ "${{ matrix.kind }}" = "system" ]; then
sudo ./install.sh -s
else
exit 1
fi