-
-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (49 loc) · 1.3 KB
/
main.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
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
detectonly:
name: Detect use of .only
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Detect use of .only
run: |
grep -rq --include '*.spec.js' \.only\( . && echo 'You have .only() in your tests!' && exit 1
exit 0
webtestrunner:
name: Web Test Runner
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Web Test Runner
run: |
wget https://bellard.org/quickjs/quickjs-2024-01-13.tar.xz
tar -xf quickjs-2024-01-13.tar.xz
rm quickjs-2024-01-13.tar.xz
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install latest
./emsdk activate latest
cd ..
npm i -g wasm-opt
(cd wasmlib && source ../emsdk/emsdk_env.sh && ./build.sh)
cd web
yarn install
yarn playwright install
sudo yarn playwright install-deps
yarn createdevaccount
yarn test
distbundle:
name: Dist bundle
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Chrome headless
run: |
cd web
yarn install
yarn dist