-
Notifications
You must be signed in to change notification settings - Fork 46
66 lines (61 loc) · 1.67 KB
/
build_test.arcgis.service.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: test and package arcgis service plugin
on:
workflow_dispatch:
workflow_call:
push:
paths:
- .github/workflows/build_test.arcgis.service.yaml
- .github/workflows/config.yaml
- plugins/arcgis/service/**
jobs:
config:
uses: ./.github/workflows/config.yaml
test:
name: test plugin arcgis.service
needs: [ config ]
runs-on: ubuntu-latest
strategy:
matrix:
node: ${{ fromJSON(needs.config.outputs.node_versions-all-json) }}
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: npm
cache-dependency-path: |
plugins/arcgis/service/package-lock.json
- name: test with node ${{ matrix.node }}
run: |
cd plugins/arcgis/service
npm ci
npm test
package:
name: package plugin arcgis.service
needs: [ config, test ]
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/service/package-lock.json
- name: build
run: |
cd plugins/arcgis/service
npm ci
npm run build
- name: pack
run: npm pack ./plugins/arcgis/service
- name: upload package
uses: actions/upload-artifact@v3
with:
name: arcgis.service-artifacts
path: |
ngageoint-mage.*.tgz