This repository has been archived by the owner on Jul 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 212
75 lines (60 loc) · 1.79 KB
/
jest-cadence-tests.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: KI Cadence Tests
on:
pull_request:
branches:
- master
push:
branches:
- master
- gpavlov/update-github-actions-workflow
- gpavlov/setup-cypress
jobs:
jest:
name: Build on Emulator and Test Cadence
timeout-minutes: 10
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.16"]
steps:
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install Flow CLI
run: sh -ci "$(curl -fsSL https://storage.googleapis.com/flow-cli/install.sh)"
- name: Update PATH
run: echo "/root/.local/bin" >> $GITHUB_PATH
- name: Checkout
uses: actions/checkout@v2
- name: Root NPM Install
run: npm i fs-jetpack chalk && npm i && npx lerna exec npm install
- name: Run JS Tests
run: npm i && npm run test
working-directory: cadence/tests
- name: Build & Run
run: npm run dev:emulator & sleep 30
- name: Deploy Contracts
run: flow project deploy --network=emulator --update
windows-build:
name: Build on Windows
timeout-minutes: 10
runs-on: windows-latest
strategy:
matrix:
go: ["1.16"]
steps:
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install Flow CLI
run: iex "& { $(irm 'https://storage.googleapis.com/flow-cli/install.ps1') }"
- name: Update PATH
run: echo "/root/.local/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Checkout
uses: actions/checkout@v2
- name: Root NPM Install
run: npm i fs-jetpack chalk && npm i && npx lerna exec npm install
- name: Build & Run
run: npm run dev:emulator & sleep 30