From 5626fd015deffdb7f3b569c12f109b08cb85e06a Mon Sep 17 00:00:00 2001 From: Daria Domina Date: Wed, 17 Sep 2025 16:47:14 +0200 Subject: [PATCH 1/2] add an auto trigger on pr --- .github/workflows/auto-simple-suite.yaml | 37 ++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/auto-simple-suite.yaml diff --git a/.github/workflows/auto-simple-suite.yaml b/.github/workflows/auto-simple-suite.yaml new file mode 100644 index 0000000..0b868e9 --- /dev/null +++ b/.github/workflows/auto-simple-suite.yaml @@ -0,0 +1,37 @@ +name: Auto run simple suite + +on: + pull_request: + branches: [ main ] + workflow_dispatch: + +jobs: + run-simple-suite: + timeout-minutes: 15 + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '22' + cache: 'yarn' + + - name: Install dependencies + run: yarn install + + - name: Install Playwright browsers + run: yarn playwright install chromium + + - name: Run simple suite + run: yarn playwright test --project=chromium --grep @smoke + + - name: Upload test results + if: ${{ !cancelled() }} + uses: actions/upload-artifact@v4 + with: + name: simple-suite-results-${{ github.run_id }} + path: playwright-report/ + retention-days: 7 From 47278b51c1462682f1d20d96948337c193c5640d Mon Sep 17 00:00:00 2001 From: Daria Domina Date: Wed, 17 Sep 2025 16:58:33 +0200 Subject: [PATCH 2/2] add a slack message step --- .github/workflows/auto-simple-suite.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/auto-simple-suite.yaml b/.github/workflows/auto-simple-suite.yaml index 0b868e9..47dc6be 100644 --- a/.github/workflows/auto-simple-suite.yaml +++ b/.github/workflows/auto-simple-suite.yaml @@ -35,3 +35,11 @@ jobs: name: simple-suite-results-${{ github.run_id }} path: playwright-report/ retention-days: 7 + + - name: Post to Slack + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + run: | + curl -X POST -H 'Content-type: application/json' \ + --data '{"text":"Simple suite results are ready"}' \ + $SLACK_WEBHOOK_URL