From 21f463d6ce00ff966f883bb5cbb35dc6c6c51f0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82?= Date: Tue, 30 Jan 2024 15:44:34 +0100 Subject: [PATCH] Revert "chore: update github actions" This reverts commit 87fd9e28814158de86bdbde5834ce5ede0ff3e97. --- .github/workflows/lint.yml | 8 +------- .github/workflows/playwright.yml | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/playwright.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index da13447..94bb610 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -26,11 +26,5 @@ jobs: - name: Prettier run: npm run format:check - - name: Unit tests + - name: Tests run: npm run test - - - name: Install Playwright Browsers - run: npx playwright install --with-deps - - - name: e2e tests - run: npm run e2e diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml new file mode 100644 index 0000000..90b6b70 --- /dev/null +++ b/.github/workflows/playwright.yml @@ -0,0 +1,27 @@ +name: Playwright Tests +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] +jobs: + test: + timeout-minutes: 60 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18 + - name: Install dependencies + run: npm ci + - name: Install Playwright Browsers + run: npx playwright install --with-deps + - name: Run Playwright tests + run: npx playwright test + - uses: actions/upload-artifact@v3 + if: always() + with: + name: playwright-report + path: playwright-report/ + retention-days: 30