Skip to content

Commit a3910a4

Browse files
authored
E2E: Enabled Playwright tests by default (#1226)
1 parent 4eb8973 commit a3910a4

File tree

3 files changed

+57
-5
lines changed

3 files changed

+57
-5
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: "E2E: Playwright Manual run"
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
sha:
6+
description: Commit to run on
7+
required: true
8+
type: string
9+
10+
permissions:
11+
contents: read
12+
checks: write
13+
statuses: write
14+
15+
jobs:
16+
build-and-test:
17+
uses: ./.github/workflows/e2e-playwright-run.yml
18+
secrets: inherit
19+
with:
20+
sha: ${{ inputs.sha }}
21+
22+
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: "Playwright E2E: PR tests"
2+
on:
3+
pull_request:
4+
types: [ "opened", "reopened", "synchronize" ]
5+
paths:
6+
- "build.gradle"
7+
- "gradle.properties"
8+
- "settings.gradle"
9+
- "gradle/libs.versions.toml"
10+
11+
- "contract/**"
12+
- "api/**"
13+
- "serde-api/**"
14+
- "frontend/**"
15+
- "e2e-playwright/**"
16+
17+
permissions:
18+
contents: read
19+
checks: write
20+
statuses: write
21+
22+
jobs:
23+
build-and-test:
24+
uses: ./.github/workflows/e2e-playwright-run.yml
25+
secrets: inherit
26+
with:
27+
sha: ${{ github.event.pull_request.head.sha }}

.github/workflows/e2e-playwright.yml renamed to .github/workflows/e2e-playwright-run.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
name: "E2E: Playwright Manual run"
1+
name: "E2E: Playwright"
2+
23
on:
3-
workflow_dispatch:
4-
sha:
5-
required: true
6-
type: string
4+
workflow_call:
5+
inputs:
6+
sha:
7+
required: true
8+
type: string
79

810
permissions:
911
contents: read
@@ -30,6 +32,7 @@ jobs:
3032
uses: actions/setup-node@v3
3133
with:
3234
node-version: 18
35+
cache: 'npm'
3336

3437
- name: Install NPM dependencies
3538
working-directory: ./e2e-playwright

0 commit comments

Comments
 (0)