From 083a8372a320b92970d130c8b89d457f2177e7d8 Mon Sep 17 00:00:00 2001 From: Mnigos Date: Thu, 29 Aug 2024 08:12:59 +0200 Subject: [PATCH] ci(workflows/main): upload dist directory and download it on `e2e` job --- .github/workflows/main.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0052163..fb79143 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -30,6 +30,12 @@ jobs: AUTH_GITHUB_SECRET: secret AUTH_SECRET: secret + - name: Upload production artifact 📤 + uses: actions/upload-artifact@v4 + with: + name: dist + path: dist + lint: name: 'Lint 🐱' needs: build @@ -55,7 +61,7 @@ jobs: AUTH_SECRET: secret test: - name: 'Test 🧪' + name: 'Unit Tests 🧪' needs: build runs-on: ubuntu-latest @@ -77,7 +83,7 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} e2e: - name: 'E2E 🧪' + name: 'E2E Tests 🧪' needs: build runs-on: ubuntu-latest @@ -93,6 +99,11 @@ jobs: - name: Install Playwright Browsers run: npx playwright install --with-deps + - name: Download production artifact 📤 + uses: actions/download-artifact@v4 + with: + name: dist + - name: Run e2e tests 🧪 run: npx playwright test env: