build: rebuilds before pushing to docs #709
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Drag and drop tests | |
on: [push, workflow_dispatch] | |
jobs: | |
playwright: | |
name: "Playwright tests" | |
timeout-minutes: 30 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 9.10.0 | |
- run: pnpm install --frozen-lockfile | |
- name: Build Dev Frameworks | |
run: cd tests-frameworks && pnpm install && cd .. | |
- name: Build Dev | |
run: cd tests && pnpm install && cd .. | |
- name: Install Playwright | |
run: pnpm exec playwright install --with-deps | |
- name: Spin up tests-frameworks | |
run: pnpm tests-frameworks & | |
- name: Spin up tests | |
run: pnpm tests & | |
- name: Run Playwright tests | |
run: npx playwright test | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 30 |