From c8aff6968e6513da0333d5783b596c1fd60fb698 Mon Sep 17 00:00:00 2001 From: tymurbaniak Date: Fri, 6 Mar 2026 05:12:18 +0100 Subject: [PATCH] ci: added condition to deploy - only after e2e tests pass --- .gitea/workflows/build.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index a0f4f85..9a05e33 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -5,7 +5,29 @@ on: branches: [ main ] jobs: + e2e: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Use Node + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Install + run: npm ci + + - name: Install Playwright browsers + run: npx playwright install --with-deps chromium + + - name: Run e2e tests + run: npm run test:e2e + deploy: + needs: e2e runs-on: ubuntu-latest steps: