diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 0000000..645d6ab --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,38 @@ +name: Test PR + +on: + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: read + issues: read + steps: + - name: Checkout Repo + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - uses: pnpm/action-setup@v4 + with: + version: 9 + + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: '20.x' + + - name: Install Dependencies + run: pnpm install --frozen-lockfile + + - name: Build + run: pnpm build + + - name: Install playwright deps + run: pnpm -w run playwright-install-ci + + - name: Run Tests + run: pnpm -w run test