-
Notifications
You must be signed in to change notification settings - Fork 25
40 lines (35 loc) · 886 Bytes
/
ci.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
# run everything just to make sure it works!
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: JS unit tests
run: node wrapper.js test
- name: miniChRIS
id: cube
uses: ./
with:
plugins: |
pl-mri-preview
pl-re-sub
- name: Run pl-dircopy
run: ./test.sh
- name: Check extra plugins installed
run: |
all_plugin_names="$(
curl -sLu 'chris:chris1234' 'http://localhost:8000/api/v1/plugins/' \
-H 'Accept: application/json'
)"
function assert_has () {
[[ "$all_plugin_names" = *"$1"* ]]
}
set -e
assert_has pl-mri-preview
assert_has pl-re-sub