-
Notifications
You must be signed in to change notification settings - Fork 8
87 lines (72 loc) · 2.35 KB
/
pr-healthcheck-runner.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
76
77
78
79
80
81
82
83
84
85
86
87
name: Healthcheck
on:
pull_request:
branches: [develop, main]
push:
branches:
- main
- developer
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
env:
CI: 1
DEBUG: 0
DFX_VERSION: 0.8.4
DFX_WARNING: -version_check
NODE_ENV: ci
steps:
- uses: actions/checkout@v2
with:
submodules: "recursive"
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: wasm32-unknown-unknown
override: true
- name: Adds ic-cdk-optimizer
run: |
cd ./.bin/stable-x86_64-unknown-linux-gnu
gzip -d ic-cdk-optimizer.gz
cp ic-cdk-optimizer /usr/local/bin
- name: Cache Dfx
id: cache-dfx
uses: actions/cache@v2
with:
path: |
/usr/local/bin/dfx
key: cache-dfx-${{ hashFiles('dfx.json') }}
- name: Install DFX
if: steps.cache-dfx.outputs.cache-hit != 'true'
run: |
yes Y | DFX_VERSION="$DFX_VERSION" sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)"
- name: Adds pcregrep
run: |
sudo apt-get update
sudo apt-get -y install pcregrep
- name: Cache build artifacts
id: cache-rust-target
uses: actions/cache@v2
with:
path: |
**/target
key: cache-rust-target-${{ hashFiles('**/Cargo.lock') }}
- name: Dfx local network replica
run: |
dfx start --background
- name: Dfx identity
run: |
dfx identity use default
- name: Cap Service
run: |
npm install -g json
json -I -f dfx.json -e "this.dfx=\"$DFX_VERSION\""
yarn cap:start
- name: Test
run: yarn test
- name: DIP-20 Healthcheck
run: |
yarn dip20:healthcheck