Skip to content

Commit

Permalink
chore: back to 2 groups
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanlawson committed Oct 31, 2023
1 parent edc0b76 commit b39172d
Showing 1 changed file with 1 addition and 45 deletions.
46 changes: 1 addition & 45 deletions .github/workflows/karma.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ env:

jobs:
run-karma-tests-group-1:
name: Group 1
runs-on: ubuntu-22.04
env:
SAUCE_TUNNEL_ID: github-action-tunnel-integration-${{github.run_id}}-group-1
Expand Down Expand Up @@ -67,7 +66,6 @@ jobs:
path: ./packages/@lwc/integration-karma/coverage

run-karma-tests-group-2:
name: Group 2
runs-on: ubuntu-22.04
env:
SAUCE_TUNNEL_ID: github-action-tunnel-integration-${{github.run_id}}-group-2
Expand Down Expand Up @@ -99,41 +97,6 @@ jobs:
- run: ENABLE_ARIA_REFLECTION_GLOBAL_POLYFILL=1 yarn sauce:ci
- run: ENABLE_ARIA_REFLECTION_GLOBAL_POLYFILL=1 DISABLE_SYNTHETIC=1 yarn sauce:ci
- run: DISABLE_SYNTHETIC_SHADOW_SUPPORT_IN_COMPILER=1 DISABLE_SYNTHETIC=1 yarn sauce:ci

- name: Upload coverage results
uses: actions/upload-artifact@v3
with:
name: coverage-report-group-2
path: ./packages/@lwc/integration-karma/coverage

run-karma-tests-group-3:
name: Group 3
runs-on: ubuntu-22.04
env:
SAUCE_TUNNEL_ID: github-action-tunnel-integration-${{github.run_id}}-group-3
defaults:
run:
working-directory: ./packages/@lwc/integration-karma
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "18.18.0"
cache: 'yarn'

- name: Install dependencies
run: yarn install --frozen-lockfile
working-directory: ./

- uses: saucelabs/sauce-connect-action@v2
with:
username: ${{ secrets.SAUCE_USERNAME }}
accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
tunnelName: ${{ env.SAUCE_TUNNEL_ID }}

- run: DISABLE_STATIC_CONTENT_OPTIMIZATION=1 yarn sauce:ci
- run: DISABLE_STATIC_CONTENT_OPTIMIZATION=1 DISABLE_SYNTHETIC=1 yarn sauce:ci
- run: NODE_ENV_FOR_TEST=production yarn sauce:ci
Expand All @@ -143,19 +106,17 @@ jobs:
- name: Upload coverage results
uses: actions/upload-artifact@v3
with:
name: coverage-report-group-3
name: coverage-report-group-2
path: ./packages/@lwc/integration-karma/coverage

run-karma-tests:
name: Compute coverage
runs-on: ubuntu-22.04
defaults:
run:
working-directory: ./packages/@lwc/integration-karma
needs:
- run-karma-tests-group-1
- run-karma-tests-group-2
- run-karma-tests-group-3
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -180,10 +141,5 @@ jobs:
with:
name: coverage-report-group-2
path: ./packages/@lwc/integration-karma/coverage
- name: Download coverage results - group 3
uses: actions/download-artifact@v3
with:
name: coverage-report-group-3
path: ./packages/@lwc/integration-karma/coverage

- run: yarn coverage

0 comments on commit b39172d

Please sign in to comment.