This repository has been archived by the owner on Jun 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
63 lines (61 loc) · 2.05 KB
/
test-typescript.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: Typescript Examples
on:
workflow_call:
workflow_dispatch:
pull_request:
paths:
- "node/**"
- "browser/**"
- ".github/workflows/*typescript*"
push:
branches:
- main
paths:
- "node/**"
- "browser/**"
- ".github/workflows/*typescript*"
jobs:
test_typescript:
name: Build Node & Browser Samples
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest] # windows-latest] - disabled due to wasm-pack bug with windows
node-version: [16]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
name: Setup Node v${{ matrix.node-version }}
with:
node-version: ${{ matrix.node-version }}
- name: Build Node Demo
run: |
npm install
npm run start
working-directory: ./node/basic
- name: Build Basic Webpack 4 Demo
run: |
npm install
CI=false npm run build
working-directory: ./browser/basic-webpack-4
- name: Build Basic Create React App 4
run: |
npm install
CI=false npm run build
working-directory: ./browser/basic-create-react-app-4
- name: Build Basic Create React App 5
run: |
npm install
CI=false npm run build
working-directory: ./browser/basic-create-react-app-5
- name: Build Basic Webpack 5 Demo
run: |
npm install
CI=false npm run build
working-directory: ./browser/basic-webpack-5
- name: Build React Wallet Demo
run: |
npm install
CI=false npm run build
working-directory: ./browser/react-wallet