From 87fd9e28814158de86bdbde5834ce5ede0ff3e97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82?= Date: Tue, 30 Jan 2024 15:41:51 +0100 Subject: [PATCH] chore: update github actions --- .github/workflows/lint.yml | 8 +++++++- .github/workflows/playwright.yml | 27 --------------------------- 2 files changed, 7 insertions(+), 28 deletions(-) delete mode 100644 .github/workflows/playwright.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 94bb610..da13447 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -26,5 +26,11 @@ jobs: - name: Prettier run: npm run format:check - - name: Tests + - name: Unit 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 deleted file mode 100644 index 90b6b70..0000000 --- a/.github/workflows/playwright.yml +++ /dev/null @@ -1,27 +0,0 @@ -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