-
Notifications
You must be signed in to change notification settings - Fork 46
63 lines (54 loc) · 1.71 KB
/
ci-casper-rust-contract.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
name: ci-cep18
on:
push:
branches: [master, dev]
pull_request:
branches: [master, dev]
jobs:
ci-smart-contract:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b #v3.0.2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
components: rustfmt, clippy
# Needed for gcc install
- run: sudo apt update && sudo apt install -y build-essential wabt
- uses: Swatinem/rust-cache@v1
- run: make prepare
- run: make check-lint
- run: make test
- uses: actions/upload-artifact@v3
with:
name: cep18.wasm
path: target/wasm32-unknown-unknown/release/cep18.wasm
ci-js-client:
needs: ci-smart-contract
runs-on: ubuntu-22.04
strategy:
matrix:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version: [16.x]
steps:
- name: Checkout
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b #v3.0.2
- uses: actions/download-artifact@v3
with:
name: cep18.wasm
path: target/wasm32-unknown-unknown/release
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@5b949b50c3461bbcd5a540b150c368278160234a #v3.4.0
with:
node-version: ${{ matrix.node-version }}
registry-url: "https://registry.npmjs.org"
- name: Install
working-directory: client-js
run: npm install
- name: Generate WASMS
working-directory: ./client-js
run: npm run generate:wasm
- name: test
working-directory: client-js
run: npm run test:unit