diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml new file mode 100644 index 0000000..891622e --- /dev/null +++ b/.github/workflows/pr-checks.yml @@ -0,0 +1,25 @@ +name: PR Checks +on: + pull_request: + branches: [main] + +jobs: + test: + name: Format & Build Check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: "20.x" + cache: "yarn" + + - name: Install dependencies + run: yarn install --frozen-lockfile + + - name: Check formatting + run: yarn biome check . + + - name: Build package + run: yarn build \ No newline at end of file