From 5b65d0511531397dc988c499e74fcb200974c217 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Latzarus?= Date: Mon, 16 Dec 2024 13:27:05 +0100 Subject: [PATCH] ci: run tests in CI --- .../workflows/{playwright.yml => tests.yml} | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) rename .github/workflows/{playwright.yml => tests.yml} (72%) diff --git a/.github/workflows/playwright.yml b/.github/workflows/tests.yml similarity index 72% rename from .github/workflows/playwright.yml rename to .github/workflows/tests.yml index a94b641..a0dae3e 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/tests.yml @@ -1,24 +1,33 @@ -name: Playwright Tests +name: Tests on: push: - branches: [ main, master ] + branches: [ main ] pull_request: - branches: [ main, master ] jobs: - test: + tests: timeout-minutes: 60 runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: lts/* + node-version: 18 + - name: Install dependencies - run: npm install -g yarn && yarn + run: yarn + - name: Install Playwright Browsers run: yarn playwright install --with-deps + + - name: Build + run: yarn build + - name: Run Playwright tests run: yarn playwright test + env: + PORT: 3001 + DB: ${{ secrets.ASAW_DATABASE_URL }} + - uses: actions/upload-artifact@v4 if: ${{ !cancelled() }} with: