From a87ab8b09380df64ecd38fe26a8b8f2cc45a3c4d Mon Sep 17 00:00:00 2001 From: Valeriia Ruban Date: Wed, 20 Dec 2023 12:47:24 -0800 Subject: [PATCH] =?UTF-8?q?feat:=20updated=20github=20checks=20with=20fron?= =?UTF-8?q?tend-test-ce=20end=20frontend-test-e=E2=80=A6=20(#19995)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/frontend.yml | 44 ++++++++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index 550fddd5d1..3fbab0d9cf 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -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: