generated from trywilco/Anythink-Market-Base
-
Notifications
You must be signed in to change notification settings - Fork 4
46 lines (36 loc) · 1.14 KB
/
test_e2e_node.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
name: E2E Node
on:
pull_request:
jobs:
ci-checks:
name: Pr checks
runs-on: ubuntu-20.04
timeout-minutes: 6
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Run checks
uses: actions/setup-node@v3
with:
node-version: "16"
cache: "yarn"
cache-dependency-path: .framework/node/backend
- uses: oNaiPs/secrets-to-env-action@v1
with:
secrets: ${{ toJSON(secrets) }}
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: "4.4"
- run: yarn install
working-directory: .framework/node/backend
- run: ENGINE_BASE_URL=http://localhost:3003 WILCO_ID=0 MONGODB_URI=mongodb://localhost/anythink-market yarn start >& /dev/null &
working-directory: .framework/node/backend
- run: yarn install
working-directory: tests/e2e/
- run: yarn wait-on http://localhost:3000/health --timeout 5000
working-directory: tests/e2e/
- run: yarn test
working-directory: tests/e2e/