Skip to content

Commit

Permalink
ci(workflows/main): upload dist directory and download it on e2e job
Browse files Browse the repository at this point in the history
  • Loading branch information
Mnigos committed Aug 29, 2024
1 parent 0969d6b commit 0a92a40
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: .next

lint:
name: 'Lint 🐱'
needs: build
Expand All @@ -55,7 +61,7 @@ jobs:
AUTH_SECRET: secret

test:
name: 'Test 🧪'
name: 'Unit Tests 🧪'
needs: build
runs-on: ubuntu-latest

Expand All @@ -77,7 +83,7 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}

e2e:
name: 'E2E 🧪'
name: 'E2E Tests 🧪'
needs: build
runs-on: ubuntu-latest

Expand All @@ -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:
Expand Down

0 comments on commit 0a92a40

Please sign in to comment.