Skip to content

Commit 826a442

Browse files
committed
add e2e test workflow
JSUI-3538
1 parent cde34a3 commit 826a442

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: 'End-to-end certifier'
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
environment:
7+
description: The environment in which to run the job
8+
region:
9+
description: The region in which to run the job
10+
package:
11+
description: The package name
12+
job:
13+
description: The name of the job (as defined in the deployment config)
14+
15+
jobs:
16+
test-job:
17+
runs-on: [ "coveo env=${{ inputs.environment }} region=${{ inputs.region }}", arm64, linux, eks ]
18+
steps:
19+
- name: Deploy JSUI beta version on Netlify
20+
run: curl --request POST https://api.netlify.com/build_hooks/${{ secrets.NETLIFY_BUILD_HOOK_ID }}
21+
22+
- name: Pull tests from the test repository
23+
run: git clone https://github.com/coveo/sfint-testauto.git
24+
25+
- name: Install dependencies
26+
run: |
27+
cd sfint-testauto/playwright-jsui
28+
npm install
29+
npx playwright install
30+
31+
- name: Run tests
32+
run: |
33+
cd sfint-testauto/playwright-jsui
34+
npx playwright test

0 commit comments

Comments
 (0)