-
Notifications
You must be signed in to change notification settings - Fork 15
58 lines (48 loc) · 1.35 KB
/
js_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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: JS-CI
on:
push:
branches: [master, f-droid]
pull_request:
branches: [master, f-droid]
env:
NODE_VERSION: 16.13.1
JAVA_VERSION: 12.x
jobs:
integration-tests:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
# Setup Environment
- uses: actions/checkout@v3
# JS Stuff
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: Run encointer-node
run: ./scripts/docker_run_encointer_node_notee.sh &
- name: Bootstrap Demo Community
run: ./scripts/docker_run_encointer_client_bootstrap_demo_community.sh
- name: Test JS
# We don't really have unit tests in the JS part. Most tests need a local node running.
run: |
cd app/js_service_encointer
yarn install
yarn test
e2e-tests:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
network: [gesell] # Todo: add cantillon once we support it again.
steps:
# Setup Environment
- uses: actions/checkout@v3
# JS Stuff
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: Run e2e tests against ${{ matrix.network }}
run: |
cd app/js_service_encointer
yarn install
yarn test:${{ matrix.network }}