ci: split frontend ember jobs (#16973)

Signed-off-by: Dan Bond <danbond@protonmail.com>
This commit is contained in:
Dan Bond 2023-04-11 21:48:09 -07:00 committed by GitHub
parent 8eaf4b17c1
commit 9a2221b07b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 7 deletions

View File

@ -75,10 +75,14 @@ jobs:
ember-build-test: ember-build-test:
needs: setup needs: setup
runs-on: ${{ fromJSON(needs.setup.outputs.compute-xl) }} runs-on: ${{ fromJSON(needs.setup.outputs.compute-xl) }}
strategy:
matrix:
partition: [1, 2, 3, 4]
env: env:
EMBER_TEST_REPORT: test-results/report-oss.xml # outputs test report for CircleCI test summary EMBER_TEST_REPORT: test-results/report-oss.xml # outputs test report for CircleCI test summary
EMBER_TEST_PARALLEL: true # enables test parallelization with ember-exam EMBER_TEST_PARALLEL: true # enables test parallelization with ember-exam
CONSUL_NSPACES_ENABLED: ${{ endsWith(github.repository, '-enterprise') && 1 || 0 }} # NOTE: this should be 1 in ENT. CONSUL_NSPACES_ENABLED: ${{ endsWith(github.repository, '-enterprise') && 1 || 0 }} # NOTE: this should be 1 in ENT.
JOBS: 2 # limit parallelism for broccoli-babel-transpiler
steps: steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # pin@v3.3.0 - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # pin@v3.3.0
@ -92,17 +96,20 @@ jobs:
- name: Install Chrome - name: Install Chrome
uses: browser-actions/setup-chrome@29abc1a83d1d71557708563b4bc962d0f983a376 # pin@v1.2.1 uses: browser-actions/setup-chrome@29abc1a83d1d71557708563b4bc962d0f983a376 # pin@v1.2.1
# Install dependencies. - name: Install dependencies
- name: install yarn packages
working-directory: ui working-directory: ui
run: make deps run: make deps
- working-directory: ui/packages/consul-ui - name: Build CI
run: | working-directory: ui/packages/consul-ui
make build-ci run: make build-ci
node_modules/.bin/ember exam --path dist --silent -r xunit
- working-directory: ui/packages/consul-ui - name: Ember exam
working-directory: ui/packages/consul-ui
run: node_modules/.bin/ember exam --split=4 --partition=${{ matrix.partition }} --path dist --silent -r xunit
- name: Test Coverage CI
working-directory: ui/packages/consul-ui
run: make test-coverage-ci run: make test-coverage-ci
# This is job is required for branch protection as a required gihub check # This is job is required for branch protection as a required gihub check