|
|
|
@ -43,7 +43,7 @@ jobs:
|
|
|
|
|
working-directory: ./ui/packages/consul-ui
|
|
|
|
|
run: make test-node
|
|
|
|
|
|
|
|
|
|
frontend-build-oss:
|
|
|
|
|
frontend-build-ce:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
env:
|
|
|
|
|
JOBS: 2
|
|
|
|
@ -65,27 +65,27 @@ jobs:
|
|
|
|
|
working-directory: ./ui
|
|
|
|
|
run: make deps
|
|
|
|
|
|
|
|
|
|
- name: Ember Build OSS
|
|
|
|
|
id: build-oss
|
|
|
|
|
- name: Ember Build CE
|
|
|
|
|
id: build-ce
|
|
|
|
|
working-directory: ./ui/packages/consul-ui
|
|
|
|
|
run: make build-ci
|
|
|
|
|
|
|
|
|
|
- name: Upload OSS Frontend
|
|
|
|
|
- name: Upload CE Frontend
|
|
|
|
|
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
|
|
|
|
|
with:
|
|
|
|
|
name: frontend-oss-${{ env.BRANCH_NAME }}
|
|
|
|
|
name: frontend-ce-${{ env.BRANCH_NAME }}
|
|
|
|
|
path: ./ui/packages/consul-ui/dist
|
|
|
|
|
if-no-files-found: error
|
|
|
|
|
|
|
|
|
|
frontend-test-oss:
|
|
|
|
|
frontend-test-ce:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
needs: [frontend-build-oss]
|
|
|
|
|
needs: [frontend-build-ce]
|
|
|
|
|
strategy:
|
|
|
|
|
matrix:
|
|
|
|
|
partition: [ 1, 2, 3, 4 ]
|
|
|
|
|
env:
|
|
|
|
|
CONSUL_NSPACES_ENABLED: 0
|
|
|
|
|
EMBER_TEST_REPORT: test-results/report-oss.xml #outputs test report for CI test summary
|
|
|
|
|
EMBER_TEST_REPORT: test-results/report-ce.xml #outputs test report for CI test summary
|
|
|
|
|
EMBER_TEST_PARALLEL: true #enables test parallelization with ember-exam
|
|
|
|
|
steps:
|
|
|
|
|
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
|
|
|
@ -104,13 +104,13 @@ jobs:
|
|
|
|
|
working-directory: ./ui
|
|
|
|
|
run: make deps
|
|
|
|
|
|
|
|
|
|
- name: Download OSS Frontend
|
|
|
|
|
- name: Download CE Frontend
|
|
|
|
|
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
|
|
|
|
|
with:
|
|
|
|
|
name: frontend-oss-${{ env.BRANCH_NAME }}
|
|
|
|
|
name: frontend-ce-${{ env.BRANCH_NAME }}
|
|
|
|
|
path: ./ui/packages/consul-ui/dist
|
|
|
|
|
|
|
|
|
|
- name: Ember Test OSS
|
|
|
|
|
- name: Ember Test CE
|
|
|
|
|
id: cache
|
|
|
|
|
working-directory: ./ui/packages/consul-ui
|
|
|
|
|
run: node_modules/.bin/ember exam --split=$EMBER_PARTITION_TOTAL --partition=${{ matrix.partition }} --path dist --silent -r xunit
|
|
|
|
@ -138,7 +138,7 @@ jobs:
|
|
|
|
|
run: make deps
|
|
|
|
|
|
|
|
|
|
- name: Ember Build ENT
|
|
|
|
|
id: build-oss
|
|
|
|
|
id: build-ce
|
|
|
|
|
working-directory: ./ui/packages/consul-ui
|
|
|
|
|
run: make build-ci
|
|
|
|
|
|
|
|
|
@ -157,7 +157,7 @@ jobs:
|
|
|
|
|
partition: [ 1, 2, 3, 4 ]
|
|
|
|
|
env:
|
|
|
|
|
CONSUL_NSPACES_ENABLED: 1
|
|
|
|
|
EMBER_TEST_REPORT: test-results/report-oss.xml #outputs test report for CI test summary
|
|
|
|
|
EMBER_TEST_REPORT: test-results/report-ce.xml #outputs test report for CI test summary
|
|
|
|
|
EMBER_TEST_PARALLEL: true #enables test parallelization with ember-exam
|
|
|
|
|
steps:
|
|
|
|
|
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
|
|
|
@ -219,7 +219,7 @@ jobs:
|
|
|
|
|
|
|
|
|
|
slack-failure-notification:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
needs: [frontend-test-oss, frontend-test-ent]
|
|
|
|
|
needs: [frontend-test-ce, frontend-test-ent]
|
|
|
|
|
if: ${{ failure() }}
|
|
|
|
|
steps:
|
|
|
|
|
- name: Slack Notification
|
|
|
|
|