diff --git a/.github/workflows/e2e-playwright-manual.yml b/.github/workflows/e2e-playwright-manual.yml new file mode 100644 index 000000000..6540b7586 --- /dev/null +++ b/.github/workflows/e2e-playwright-manual.yml @@ -0,0 +1,22 @@ +name: "E2E: Playwright Manual run" +on: + workflow_dispatch: + inputs: + sha: + description: Commit to run on + 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: ${{ inputs.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