feat: updated github checks with frontend-test-ce end frontend-test-e… (#19995)

This commit is contained in:
Valeriia Ruban 2023-12-20 12:47:24 -08:00 committed by GitHub
parent 9975b8bd73
commit a87ab8b093
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 42 additions and 2 deletions

View File

@ -72,6 +72,7 @@ jobs:
ember-build-test:
needs: setup
if: ${{ !endsWith(github.repository, '-enterprise') }}
runs-on: ${{ fromJSON(needs.setup.outputs.compute-large ) }}
strategy:
matrix:
@ -79,7 +80,47 @@ jobs:
env:
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
CONSUL_NSPACES_ENABLED: ${{ endsWith(github.repository, '-enterprise') && 1 || 0 }} # NOTE: this should be 1 in ENT.
CONSUL_NSPACES_ENABLED: 0 # NOTE: this should be 1 in ENT.
JOBS: 2 # limit parallelism for broccoli-babel-transpiler
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3.7.0
with:
node-version: '18'
- name: Install Yarn
run: corepack enable
- name: Install Chrome
uses: browser-actions/setup-chrome@c485fa3bab6be59dce18dbc18ef6ab7cbc8ff5f1 # v1.2.0
- name: Install dependencies
working-directory: ui
run: make deps
- name: Build CI
working-directory: ui/packages/consul-ui
run: make build-ci
- 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
ember-build-test-ent:
needs: setup
runs-on: ${{ fromJSON(needs.setup.outputs.compute-large ) }}
strategy:
matrix:
partition: [1, 2, 3, 4]
env:
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
CONSUL_NSPACES_ENABLED: 1 # NOTE: this should be 1 in ENT.
JOBS: 2 # limit parallelism for broccoli-babel-transpiler
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
@ -109,7 +150,6 @@ jobs:
- name: Test Coverage CI
working-directory: ui/packages/consul-ui
run: make test-coverage-ci
# This is job is required for branch protection as a required gihub check
# because GitHub actions show up as checks at the job level and not the
# workflow level. This is currently a feature request: