From a51b85e55f9791180236e97682911d2a4ffb57de Mon Sep 17 00:00:00 2001 From: German Osin Date: Mon, 28 Jul 2025 11:51:48 +0300 Subject: [PATCH 1/3] Enabled Playwright tests by default --- .github/workflows/e2e-playwright-manual.yml | 20 ++++++++++++++ .github/workflows/e2e-playwright-pr.yml | 27 +++++++++++++++++++ ...-playwright.yml => e2e-playwright-run.yml} | 12 +++++---- 3 files changed, 54 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/e2e-playwright-manual.yml create mode 100644 .github/workflows/e2e-playwright-pr.yml rename .github/workflows/{e2e-playwright.yml => e2e-playwright-run.yml} (97%) diff --git a/.github/workflows/e2e-playwright-manual.yml b/.github/workflows/e2e-playwright-manual.yml new file mode 100644 index 000000000..66766938b --- /dev/null +++ b/.github/workflows/e2e-playwright-manual.yml @@ -0,0 +1,20 @@ +name: "E2E: Playwright Manual run" +on: + workflow_dispatch: + sha: + required: true + type: string + +permissions: + contents: read + checks: write + statuses: write + +jobs: + build-and-test: + uses: ./.github/workflows/e2e-playwright-run.yml + secrets: inherit + with: + sha: ${{ github.sha }} + + diff --git a/.github/workflows/e2e-playwright-pr.yml b/.github/workflows/e2e-playwright-pr.yml new file mode 100644 index 000000000..5ead73721 --- /dev/null +++ b/.github/workflows/e2e-playwright-pr.yml @@ -0,0 +1,27 @@ +name: "Playwright E2E: PR smoke tests" +on: + pull_request: + types: [ "opened", "reopened", "synchronize" ] + paths: + - "build.gradle" + - "gradle.properties" + - "settings.gradle" + - "gradle/libs.versions.toml" + + - "contract/**" + - "api/**" + - "serde-api/**" + - "frontend/**" + - "e2e-playwright/**" + +permissions: + contents: read + checks: write + statuses: write + +jobs: + build-and-test: + uses: ./.github/workflows/e2e-playwright-run.yml + secrets: inherit + with: + sha: ${{ github.event.pull_request.head.sha }} diff --git a/.github/workflows/e2e-playwright.yml b/.github/workflows/e2e-playwright-run.yml similarity index 97% rename from .github/workflows/e2e-playwright.yml rename to .github/workflows/e2e-playwright-run.yml index d8a98d3c0..29215aa43 100644 --- a/.github/workflows/e2e-playwright.yml +++ b/.github/workflows/e2e-playwright-run.yml @@ -1,9 +1,11 @@ -name: "E2E: Playwright Manual run" +name: "E2E: Playwright" + on: - workflow_dispatch: - sha: - required: true - type: string + workflow_call: + inputs: + sha: + required: true + type: string permissions: contents: read From 1a8d5e9faf441c6327c39430bde4d6dafbba49bd Mon Sep 17 00:00:00 2001 From: German Osin Date: Mon, 28 Jul 2025 12:06:36 +0300 Subject: [PATCH 2/3] Enabled Playwright tests by default --- .github/workflows/e2e-playwright-manual.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/e2e-playwright-manual.yml b/.github/workflows/e2e-playwright-manual.yml index 66766938b..6de44c473 100644 --- a/.github/workflows/e2e-playwright-manual.yml +++ b/.github/workflows/e2e-playwright-manual.yml @@ -15,6 +15,6 @@ jobs: uses: ./.github/workflows/e2e-playwright-run.yml secrets: inherit with: - sha: ${{ github.sha }} + sha: ${{ inputs.sha }} From a692560a29019abacbe74ed6109929a8ec449e6b Mon Sep 17 00:00:00 2001 From: German Osin Date: Mon, 28 Jul 2025 12:08:10 +0300 Subject: [PATCH 3/3] Enabled Playwright tests by default --- .github/workflows/e2e-playwright-manual.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/e2e-playwright-manual.yml b/.github/workflows/e2e-playwright-manual.yml index 6de44c473..6540b7586 100644 --- a/.github/workflows/e2e-playwright-manual.yml +++ b/.github/workflows/e2e-playwright-manual.yml @@ -1,9 +1,11 @@ name: "E2E: Playwright Manual run" on: workflow_dispatch: - sha: - required: true - type: string + inputs: + sha: + description: Commit to run on + required: true + type: string permissions: contents: read