From ca8821d12197d87751f43d52bb82f0e86021ded5 Mon Sep 17 00:00:00 2001 From: David Hunt Date: Tue, 17 Dec 2024 23:54:47 +1300 Subject: [PATCH] chore: add test running for pull requests --- .github/workflows/pr.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/pr.yml 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