diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml new file mode 100644 index 0000000..69f0539 --- /dev/null +++ b/.github/workflows/pr-checks.yml @@ -0,0 +1,36 @@ +name: PR Checks + +on: + pull_request: + push: + branches: [ "main" ] + +jobs: + build: + name: Build + runs-on: ubuntu-24.04 # Pin to LTS version (avoid latest to prevent unexpected issues) + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 22 + cache: yarn + + - name: Install dependencies + run: yarn install --frozen-lockfile + + - name: Build + run: npm run build + + test: + name: Test + runs-on: ubuntu-24.04 + needs: build + + steps: + - name: Run unit tests + run: echo "Tests will run here"