forked from casper-ecosystem/cep-78-enhanced-nft
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (50 loc) · 1.49 KB
/
ci-cep-78-client.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
name: ci-casper-cep78-js-client
on:
push:
branches:
- "dev"
- "feat-*"
- "release-*"
pull_request:
branches:
- "dev"
- "feat-*"
- "release-*"
jobs:
client-build:
strategy:
fail-fast: false
matrix:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version: [18.x]
os: [ubuntu-20.04, ubuntu-22.04]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b #v3.0.2
- uses: Swatinem/rust-cache@cb2cf0cc7c5198d3364b9630e2c3d457f160790c #v1.4.0
- name: Install dependencies
run: sudo apt update && sudo apt install -y build-essential wabt
- name: Setup
run: make prepare
- name: Prepare WASMs
run: make setup-test
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@5b949b50c3461bbcd5a540b150c368278160234a #v3.4.0
with:
node-version: ${{ matrix.node-version }}
- name: Install
working-directory: ./client-js
run: npm install
- name: Copy & convert WASMs
working-directory: ./client-js
run: npm run wasms:convert
- name: Audits
working-directory: ./client-js
run: npm audit --omit=dev
- name: Lints
working-directory: ./client-js
run: npm run lint
- name: Test
working-directory: ./client-js
run: npm test