-
Notifications
You must be signed in to change notification settings - Fork 69
140 lines (122 loc) · 2.94 KB
/
ci.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
name: pacapt-tests
on:
push:
branches-ignore:
- no-we-want-to-run-check-on-all-branches
jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: prepare
run: |
sudo apt-get install libjson-perl liburi-perl
- name: shellcheck
run: |
export CI_SHELLCHECK_UPDATE=yes
make shellcheck
- name: shellcheck-POSIX
run: |
export CI_SHELLCHECK_UPDATE=yes
make POSIX
dpkg:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: make tests TESTS=dpkg
zypper:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: make tests TESTS=zypper
# See also
#
# * https://github.com/icy/pacapt/pull/207#issuecomment-929220016
# * https://bugzilla.opensuse.org/show_bug.cgi?id=1190670
# * https://github.com/moby/moby/pull/42836
#
zypper-seccomp:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: make tests TESTS=zypper IMAGES=opensuse/tumbleweed:latest
opkg:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: make tests TESTS=opkg
apk:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: make tests TESTS=apk
dnf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: make tests TESTS=dnf
yum:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: make tests TESTS=yum
swupd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: make tests TESTS=swupd
xbps:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: make tests TESTS=xbps
others:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: make tests TESTS="slitaz40"
homebrew:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- run: |
# test_homebrew
set -x
make pacapt.dev
export PATH="$(pwd -P):$PATH"
ln -s pacapt.dev pacman
cd tests/
make test_homebrew
pkgng:
runs-on: macos-10.15
steps:
- uses: actions/checkout@v2
- uses: vmactions/[email protected]
with:
usesh: true
prepare: pkg install -y bash git
run: |
set -x
make pacapt.dev
ln -s pacapt.dev pacman
export PATH="$(pwd -P):$PATH"
cd tests/
make test_pkgng
sun_tools:
runs-on: macos-10.15
steps:
- uses: actions/checkout@v2
- name: Build pacapt and tests
run: make pacapt.dev && mkdir -pv tests/tmp/ && cd tests && sh ../bin/gen_tests.sh < sun_tools.txt > tmp/sun_tools.sh
- uses: actions/cache@v2
with:
key: sol-11_4
path: |
sol-11_4.ova
- uses: mondeja/solaris-vm-action@v1
with:
run: |
set -x
mv pacapt.dev /bin/pacman
cd tests/
make test_sun_tools