-
Notifications
You must be signed in to change notification settings - Fork 438
81 lines (65 loc) · 1.84 KB
/
javascript-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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Javascript client
on:
push:
paths:
- "package.json"
- "isso/js/**"
- ".github/workflows/javascript-client.yml"
pull_request:
paths:
- "package.json"
- "isso/js/**"
- ".github/workflows/javascript-client.yml"
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node-version: [16]
fail-fast: false
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Set up NodeJS ${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: package.json
- name: Install Javascript test dependencies using npm
env:
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
run: npm install
- name: Run Javascript Jest test suite - unit tests
run: npm run test-unit
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node-version: [16]
fail-fast: false
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Set up NodeJS ${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: package.json
- name: Install Javascript dependencies using npm
run: make init
- name: Create Javascript client files
run: make js
- name: Archive and upload generated minified client files
uses: actions/upload-artifact@v3
with:
name: client-js-files
path: |
isso/js/embed.*.js
isso/js/count.*.js
isso/js/embed.dev.js.map
isso/js/count.dev.js.map
if-no-files-found: error