Skip to content

Commit 150cf5f

Browse files
committed
testing the e2e temp workflow
1 parent 3905cf6 commit 150cf5f

1 file changed

Lines changed: 7 additions & 11 deletions

File tree

packages/b2c-cli/.github/workflows/e2e-tests.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,12 @@ on:
77

88
# Post-merge - Run after changes are merged to main
99
push:
10-
#branches: [main]
11-
branches-ignore: [main]
10+
branches: [main]
11+
# To be removed post testing
12+
pull_request:
13+
branches:
14+
- main
15+
1216

1317
# Manual trigger - Support workflow_dispatch for on-demand runs
1418
workflow_dispatch:
@@ -56,7 +60,7 @@ jobs:
5660
fail-fast: false
5761
runs-on: ${{ inputs.os || matrix.os }}
5862
environment: e2e-dev
59-
timeout-minutes: 45 # E2E tests can take longer
63+
timeout-minutes: 10 # E2E tests can take longer
6064

6165
# Only run if we have the required secrets
6266
if: >
@@ -66,12 +70,10 @@ jobs:
6670
6771
steps:
6872
- uses: actions/checkout@v4
69-
7073
- uses: actions/setup-node@v4
7174
with:
7275
node-version: ${{ inputs.node_version || matrix.node_version }}
7376
cache: pnpm
74-
7577
- name: Check for required secrets and vars
7678
id: check-secrets
7779
env:
@@ -92,15 +94,12 @@ jobs:
9294
echo " - SFCC_ACCOUNT_MANAGER_HOST (var): ${SFCC_ACCOUNT_MANAGER_HOST:+✓}" >> $GITHUB_STEP_SUMMARY
9395
echo " - SFCC_SANDBOX_API_HOST (var): ${SFCC_SANDBOX_API_HOST:+✓}" >> $GITHUB_STEP_SUMMARY
9496
fi
95-
9697
- name: Install dependencies
9798
if: steps.check-secrets.outputs.has-secrets == 'true'
9899
run: pnpm install
99-
100100
- name: Build package
101101
if: steps.check-secrets.outputs.has-secrets == 'true'
102102
run: pnpm run build
103-
104103
- name: Run E2E Tests
105104
if: steps.check-secrets.outputs.has-secrets == 'true'
106105
id: e2e-test
@@ -123,7 +122,6 @@ jobs:
123122
# Also run with spec reporter for readable output
124123
echo "## E2E Test Results" >> $GITHUB_STEP_SUMMARY
125124
pnpm mocha "test/functional/e2e/**/*.test.ts" --reporter spec
126-
127125
- name: Parse E2E Results
128126
if: always() && steps.e2e-test.conclusion != 'cancelled' && steps.check-secrets.outputs.has-secrets == 'true'
129127
run: |
@@ -149,15 +147,13 @@ jobs:
149147
echo '```' >> $GITHUB_STEP_SUMMARY
150148
fi
151149
fi
152-
153150
- name: Upload E2E Test Results
154151
if: always() && steps.e2e-test.conclusion != 'cancelled' && steps.check-secrets.outputs.has-secrets == 'true'
155152
uses: actions/upload-artifact@v4
156153
with:
157154
name: e2e-test-results-${{ matrix.os }}-node${{ matrix.node_version }}-${{ github.run_number }}
158155
path: e2e-results.json
159156
retention-days: 30
160-
161157
- name: Notify on Failure
162158
if: failure() && (github.event_name == 'schedule' || github.event_name == 'push') && steps.check-secrets.outputs.has-secrets == 'true'
163159
uses: actions/github-script@v7

0 commit comments

Comments
 (0)