-
Notifications
You must be signed in to change notification settings - Fork 46
50 lines (45 loc) · 1.23 KB
/
build_test.arcgis.web-app.yaml
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
name: test and package arcgis web plugin
on:
workflow_dispatch:
workflow_call:
push:
paths:
- .github/workflows/build_test.arcgis.web-app.yaml
- .github/workflows/config.yaml
- plugins/arcgis/web-app/**
jobs:
config:
uses: ./.github/workflows/config.yaml
build:
name: build plugin mage.arcgis.web-app
needs: config
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: ${{ needs.config.outputs.node_versions-lts }}
cache: npm
cache-dependency-path: plugins/arcgis/web-app/package-lock.json
- name: build
run: |
cd plugins/arcgis/web-app
npm ci
npm run build
env:
NODE_OPTIONS: "--max_old_space_size=4096"
- name: test
run: |
cd plugins/arcgis/web-app
npm run test-headless
- name: pack
run: |
npm pack ./plugins/arcgis/web-app/dist/main
- name: upload packages
uses: actions/upload-artifact@v3
with:
name: arcgis.web-app-artifacts
path: |
ngageoint-mage.arcgis.web-app-*.tgz