-
Notifications
You must be signed in to change notification settings - Fork 13
112 lines (111 loc) · 4.21 KB
/
framework.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
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
name: Framework
on:
pull_request:
paths:
- 'Framework/**/*'
- '.github/workflows/framework.yml'
push:
branches:
- 'main'
- 'dev'
jobs:
test:
name: Tests on macos-latest
runs-on: macOS-latest
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: (cd Framework/Backend; openssl req -new -newkey rsa:2048 -days 365 -nodes -x509 -subj "/C=CH/ST=Test/L=Test/O=Tst/CN=localhost" -keyout test.key -out test.pem)
- run: (cd Framework; npm ci )
- run: (cd Framework; npm test )
coverage:
name: Tests & coverage on ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: (cd Framework; npm ci )
- run: (cd Framework; npm run coverage )
- run: (cd Framework; ./node_modules/.bin/nyc report --reporter=text-lcov > coverage.lcov)
- name: Send codecov report for Framework
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: framework
fail_ci_if_error: true
windows:
name: Test on windows-latest
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: cd Framework; npm ci
- run: cd Framework; npm test
control-compatibility:
name: Control compatibility test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macOS-latest, ubuntu-latest]
steps:
- name: Run Control tests by using `@aliceo2/web-ui` from local `../Framework`
run : (echo "Run Control tests by using @aliceo2/web-ui from local ../Framework";)
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: (cd Framework; npm ci)
- run: (cd Control; npm ci)
- run: (cd Control; npm i --save ../Framework)
- name: Check @aliceo2/web-ui was successfully linked locally
run: (cd Control; if [[ -z $(npm list @aliceo2/web-ui --link | grep @aliceo2/web-ui) ]]; then exit 1; else echo "@aliceo2/web-ui successfully linked"; fi;)
- run: (cd Control; npm test )
qualitycontrol-compatibility:
name: QualityControl compatibility test
runs-on: ${{ matrix.os }}
strategy:
matrix:
# os: [macOS-latest, ubuntu-latest] do not run on macos-latest due to known bug
os: [ubuntu-latest]
steps:
- name: Run QualityControl tests by using `@aliceo2/web-ui` from local `../Framework`
run : (echo "Run QualityControl tests by using @aliceo2/web-ui from local ../Framework";)
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: (cd Framework; npm ci)
- run: (cd QualityControl; npm ci)
- run: (cd QualityControl; npm i --save ../Framework)
- name: Check @aliceo2/web-ui was successfully linked locally
run: (cd QualityControl; if [[ -z $(npm list @aliceo2/web-ui --link | grep @aliceo2/web-ui) ]]; then exit 1; else echo "@aliceo2/web-ui successfully linked"; fi;)
- run: (cd QualityControl; npm test )
infologger-compatibility:
name: InfoLogger compatibility test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macOS-latest, ubuntu-latest]
steps:
- name: Run InfoLogger tests by using `@aliceo2/web-ui` from local `../Framework`
run : (echo "Run InfoLogger tests by using @aliceo2/web-ui from local ../Framework";)
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: (cd Framework; npm ci)
- run: (cd InfoLogger; npm ci)
- run: (cd InfoLogger; npm i --save ../Framework)
- name: Check @aliceo2/web-ui was successfully linked locally
run: (cd InfoLogger; if [[ -z $(npm list @aliceo2/web-ui --link | grep @aliceo2/web-ui) ]]; then exit 1; else echo "@aliceo2/web-ui successfully linked"; fi;)
- run: (cd InfoLogger; npm test )