From b9560336d548c671cf2d1a32a17e955c032fbf32 Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Thu, 28 May 2026 16:18:25 +0300 Subject: [PATCH] ci/cd: remove artifact, add build to e2e step --- .gitea/workflows/workflow.yml | 31 ++++--------------------------- 1 file changed, 4 insertions(+), 27 deletions(-) diff --git a/.gitea/workflows/workflow.yml b/.gitea/workflows/workflow.yml index 2b299e7..89e7d23 100644 --- a/.gitea/workflows/workflow.yml +++ b/.gitea/workflows/workflow.yml @@ -50,14 +50,6 @@ jobs: timeout-minutes: 5 run: yarn test:component --reporter=verbose --logHeapUsage - - name: Upload Build Artifacts - uses: actions/upload-artifact@v4 - with: - name: svelte-static-dist - path: | - . - !node_modules/ - e2e: needs: build runs-on: ubuntu-latest @@ -65,42 +57,27 @@ jobs: image: mcr.microsoft.com/playwright:v1.59.0-jammy steps: - uses: actions/checkout@v4 - - name: Enable Corepack run: | corepack enable corepack prepare yarn@stable --activate - - name: Persistent Yarn Cache uses: actions/cache@v4 with: path: .yarn/cache key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: ${{ runner.os }}-yarn- - - name: Install dependencies run: yarn install --immutable - - # Pull down the compiled dist folder so Vite can preview it - - name: Download Build Artifacts - uses: actions/download-artifact@v4 - with: - name: svelte-static-dist - + - name: Build Svelte SPA + run: yarn build - name: E2E Tests timeout-minutes: 15 run: yarn test:e2e - - name: Upload Playwright report - if: failure() - uses: actions/upload-artifact@v4 - with: - name: playwright-report - path: playwright-report/ - retention-days: 7 - publish: - needs: build # Only runs if tests/lint pass + # Runs if lint, unit-, component-, e2e-tests pass + needs: [build, e2e] runs-on: ubuntu-latest if: github.ref == 'refs/heads/main' # Only deploy from main branch steps: