From 4e71a2e7489e8e8692c504eb98e0f299ea6cb014 Mon Sep 17 00:00:00 2001 From: Untone Date: Thu, 6 Jun 2024 09:14:48 +0300 Subject: [PATCH] try-e2e --- .github/workflows/node-ci.yml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/node-ci.yml b/.github/workflows/node-ci.yml index 3063d95d..b61e14cb 100644 --- a/.github/workflows/node-ci.yml +++ b/.github/workflows/node-ci.yml @@ -10,6 +10,9 @@ jobs: - uses: actions/setup-node@v4 - name: Install dependencies + run: npm i + + - name: Install CI checks run: npm ci - name: Check types @@ -24,19 +27,10 @@ jobs: - name: Test production build run: npm run build - e2e: - timeout-minutes: 60 - runs-on: ubuntu-latest - if: github.event.deployment_status.state == 'success' - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - - - name: Install dependencies - run: npm ci - name: Install Playwright run: npx playwright install --with-deps + - name: Run Playwright tests - run: npx playwright test + run: npm run e2e env: BASE_URL: ${{ github.event.deployment_status.target_url }}