diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 33a1482..c062fe4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ on: - main jobs: - build-and-test: + test-and-build: runs-on: ubuntu-latest steps: - name: Checkout code @@ -29,9 +29,31 @@ jobs: - name: Build project run: npm run build + e2e-test: + name: 'Playwright Tests' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + 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@v4 + if: ${{ !cancelled() }} + with: + name: playwright-report + path: playwright-report/ + retention-days: 30 deploy: if: github.ref == 'refs/heads/main' - needs: build-and-test + needs: + - test-and-build + - e2e-test runs-on: ubuntu-latest steps: - name: Checkout code diff --git a/.idea/workspace.xml b/.idea/workspace.xml index d0d65b5..82fadbb 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,12 +4,11 @@