diff --git a/.github/workflows/optionalFlow.yml b/.github/workflows/optionalFlow.yml new file mode 100644 index 0000000..0f53ea7 --- /dev/null +++ b/.github/workflows/optionalFlow.yml @@ -0,0 +1,28 @@ +name: Optional deploy flow +on: + push: + branches: [ prod ] + pull_request: + branches: [ prod ] +jobs: + test: + name: Prod job + timeout-minutes: 60 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: lts/* + - name: Install dependencies + run: npm ci + - name: Install Playwright Browsers + run: npx playwright install --with-deps + - name: Run Playwright tests + run: npx playwright test main-page.spec.ts + - uses: actions/upload-artifact@v4 + if: ${{ !cancelled() }} + with: + name: playwright-report + path: playwright-report/ + retention-days: 30