-
Notifications
You must be signed in to change notification settings - Fork 12
55 lines (48 loc) · 1.35 KB
/
tests.yml
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
name: tests
on:
push:
pull_request:
schedule:
- cron: 0 4 * * MON,FRI
jobs:
vm:
runs-on: ubuntu-22.04
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Build
run: make
- name: Run tests
run: sudo tests/run
container:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
container:
- docker.io/amd64/ubuntu:devel
- docker.io/amd64/debian:sid
- registry.fedoraproject.org/fedora:latest
- registry.fedoraproject.org/fedora:rawhide
container:
image: ${{ matrix.container }}
options: --privileged
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Install build and test dependencies
run: |
if type apt >/dev/null 2>&1; then
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends gcc libc-dev make python3 btrfs-progs
else
dnf install -y gcc glibc-devel make python3 btrfs-progs
fi
- name: Build
run: make
# iterating through all mounts does not work in a container
- name: Run currentmount tests
run: |
export AUTOPKGTEST_TMP=$(mktemp -d)
export PATH=$(pwd):$PATH
tests/fatrace-currentmount