From 695d7783c1fef40b269078329ce08e981f7f41b4 Mon Sep 17 00:00:00 2001 From: chadrakdev Date: Sun, 24 May 2026 12:53:30 +0100 Subject: [PATCH] Add PR check workflow to build and test application --- .github/workflows/pr-checks.yml | 36 +++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/pr-checks.yml 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"