File tree 1 file changed +17
-5
lines changed
1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -22,18 +22,24 @@ jobs:
22
22
- name : Install dependencies
23
23
run : dnf update -q -y && dnf install -q -y make patch wget curl shunit2
24
24
- name : Run tests
25
- run : make test
25
+ run : |
26
+ useradd user
27
+ chown -R user:user .
28
+ sudo -u user make test
26
29
27
30
opensuse :
28
31
runs-on : ubuntu-latest
29
32
container : opensuse/tumbleweed:latest
30
33
name : " Run tests on OpenSUSE"
31
34
steps :
32
35
- name : Install dependencies
33
- run : zypper ref && zypper --non-interactive in tar gzip findutils make patch wget shunit2
36
+ run : zypper ref && zypper --non-interactive in sudo tar gzip findutils make patch wget shunit2
34
37
- uses : actions/checkout@v4
35
38
- name : Run tests
36
- run : make test
39
+ run : |
40
+ useradd user
41
+ chown -R user:user .
42
+ sudo -u user make test
37
43
38
44
archlinux :
39
45
runs-on : ubuntu-latest
52
58
sudo -u makepkg /bin/bash -c "cd /home/makepkg && git clone --quiet --depth 1 https://aur.archlinux.org/shunit2.git && cd shunit2/ && makepkg" && \
53
59
pacman -U --noconfirm /home/makepkg/shunit2/shunit2-*.pkg.tar.zst
54
60
- name : Run tests
55
- run : make test
61
+ run : |
62
+ useradd user
63
+ chown -R user:user .
64
+ sudo -u user make test
56
65
57
66
macos :
58
67
runs-on : macos-latest
77
86
copyback : false
78
87
prepare : |
79
88
pkg install -y wget curl shunit2
80
- run : make test
89
+ run : |
90
+ pw useradd user
91
+ chown -R user:user .
92
+ su -m user -c "make test"
You can’t perform that action at this time.
0 commit comments