Skip to content

Commit

Permalink
Merge branch 'develop' into web_split
Browse files Browse the repository at this point in the history
  • Loading branch information
newmanw committed Sep 5, 2024
2 parents ccdcb1e + 93c9300 commit 0b15969
Show file tree
Hide file tree
Showing 141 changed files with 60,982 additions and 71,127 deletions.
53 changes: 0 additions & 53 deletions .github/workflows/buildAndTest.yml

This file was deleted.

66 changes: 66 additions & 0 deletions .github/workflows/build_test.arcgis.service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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
50 changes: 50 additions & 0 deletions .github/workflows/build_test.arcgis.web-app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
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
66 changes: 66 additions & 0 deletions .github/workflows/build_test.image.service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: test and package image service plugin

on:
workflow_dispatch:
workflow_call:
push:
paths:
- .github/workflows/build_test.image.service.yaml
- .github/workflows/config.yaml
- plugins/image/service/**

jobs:

config:
uses: ./.github/workflows/config.yaml

test:
name: test plugin image.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/image/service/package-lock.json
- name: test with node ${{ matrix.node }}
run: |
cd plugins/image/service
npm ci
npm test
package:
name: package plugin image.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/image/service/package-lock.json
- name: build
run: |
cd plugins/image/service
npm ci
npm run build
- name: pack
run: npm pack ./plugins/image/service
- name: upload package
uses: actions/upload-artifact@v3
with:
name: image.service-artifacts
path: |
ngageoint-mage.*.tgz
66 changes: 66 additions & 0 deletions .github/workflows/build_test.nga-msi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: test and package nga-msi plugin

on:
workflow_dispatch:
workflow_call:
push:
paths:
- .github/workflows/build_test.nga-msi.yaml
- .github/workflows/config.yaml
- plugins/nga-msi/**

jobs:

config:
uses: ./.github/workflows/config.yaml

test:
name: test plugin nga-msi
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/nga-msi/package-lock.json
- name: test with node ${{ matrix.node }}
run: |
cd plugins/nga-msi
npm ci
npm test
package:
name: package plugin nga-msi
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/nga-msi/package-lock.json
- name: build
run: |
cd plugins/nga-msi
npm ci
npm run build
- name: pack
run: npm pack ./plugins/nga-msi
- name: upload package
uses: actions/upload-artifact@v3
with:
name: nga-msi-artifacts
path: |
ngageoint-mage.*.tgz
43 changes: 12 additions & 31 deletions .github/workflows/build_test.service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ on:
workflow_call:
push:
paths:
- service/**
- plugins/**
- .github/workflows/build_test.service.yaml
- .github/workflows/config.yaml
- service/**

jobs:
config:
Expand All @@ -26,41 +25,22 @@ jobs:
- name: setup node
uses: actions/setup-node@v3
with:
node-version: ${{ needs.config.outputs.node_versions-latest }}
node-version: ${{ needs.config.outputs.node_versions-lts }}
cache: npm
cache-dependency-path: |
service/npm-shrinkwrap.json
plugins/nga-msi/package-lock.json
plugins/image/service/package-lock.json
- name: build service
cache-dependency-path: service/npm-shrinkwrap.json
- name: build
run: |
cd service
npm ci
npm run build
- name: pack service
- name: package
run: npm pack ./service
- name: build plugin nga-msi
run: |
cd plugins/nga-msi
npm ci
npm run build
npm test
- name: pack nga-msi
run: npm pack ./plugins/nga-msi
- name: build plugin image.service
run: |
cd plugins/image/service
npm ci
npm run build
npm test
- name: pack plugin image.service
run: npm pack ./plugins/image/service
- name: upload packages
- name: upload package
uses: actions/upload-artifact@v3
with:
name: mage_service_packages
name: mage.service-artifacts
path: |
ngageoint-mage.*.tgz
ngageoint-mage.service-*.tgz
test:
name: test mage service
Expand All @@ -81,15 +61,16 @@ jobs:
service/npm-shrinkwrap.json
- name: install service dependencies
run: |
npm ci --prefix service
cd service
npm ci service
- name: download service package
uses: actions/download-artifact@v3
with:
name: mage_service_packages
name: mage.service-artifacts
- name: extract service lib
run: |
tar xzf $(ls -1 ngageoint-mage.service-*.tgz) package/lib
mv package/lib ./service
mv package/lib ./service/
rmdir package
- name: test service with node ${{ matrix.node }}
run: |
Expand Down
Loading

0 comments on commit 0b15969

Please sign in to comment.