-
Notifications
You must be signed in to change notification settings - Fork 163
48 lines (40 loc) · 1.39 KB
/
local-example-web-tests.yaml
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
name: Run GMP Example Web Tests
on: pull_request
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04]
arch: [amd64]
steps:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Checkout code
uses: actions/checkout@v3
- name: Prerequisites
run: |
wget --no-check-certificate https://github.com/aptos-labs/aptos-core/releases/download/aptos-cli-v1.0.4/aptos-cli-1.0.4-Ubuntu-22.04-x86_64.zip
unzip aptos-cli-1.0.4-Ubuntu-22.04-x86_64.zip
chmod +x aptos
cp aptos /usr/local/bin
- name: Install dependencies for examples
run: |
npm ci
- name: Create .env file
run: |
# Dummy private key created for testing purpose only, it is not secret
npm run setup
nohup npm run start &
sleep 5
- name: Setup Web Examples
run: |
cd examples-web
npm ci
npm run setup
- name: Compile EVM Smart Contracts and Deploy
run: |
cd examples-web
npm run deploy