forked from hiero-ledger/hiero-json-rpc-relay
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (49 loc) · 1.45 KB
/
dapp.yml
File metadata and controls
60 lines (49 loc) · 1.45 KB
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
name: Dapp Tests
on:
pull_request:
branches: [main, release/**]
push:
branches: [main, release/**]
tags: [v*]
jobs:
setup-local-hedera:
name: Dapp Tests
runs-on: ubuntu-latest
timeout-minutes: 35 # Set to 35 minutes for now
permissions:
contents: write
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18.13.0
cache: "npm"
cache-dependency-path: "**/package-lock.json"
- name: Install packages
run: npm ci
- name: Create .env file
run: |
cp ./dapp-example/localDappCI.env ./dapp-example/.env
cp ./packages/server/tests/localAcceptance.env .env
- name: Lerna Bootstrap
run: npm run setup
- name: Install pnpm
run: npm install -g pnpm
- name: Build Typescript
run: npx lerna run build
- name: Run RPC Server
run: npm run integration:prerequisite &
- name: Check local node
run: npm run check:node
- name: Build, Bootstrap & Test the dapp in Docker
run: docker-compose up --exit-code-from synpress
working-directory: ./dapp-example/
- name: Publish Reports
uses: mikepenz/action-junit-report@v3
if: always()
with:
check_name: Dapp Test Report
report_paths: "**/*.xml"
detailed_summary: true