From 7b18434b8269ebdea41bb36bc27add2702055bbf Mon Sep 17 00:00:00 2001 From: AngyDev Date: Sun, 28 Sep 2025 11:05:42 +0100 Subject: [PATCH 1/2] chore: add PR checks workflow --- .github/workflows/pr-checks.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 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..e70ee0f --- /dev/null +++ b/.github/workflows/pr-checks.yml @@ -0,0 +1,32 @@ +name: PR Checks + +on: + pull_request: + branches: + - main + +jobs: + lint-and-build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: npm + + - name: Install dependencies + run: npm ci + + - name: Run Biome check (no autofix) + run: npm run check:ci + + - name: Build library + run: npm run build:lib + + - name: Build demo + run: npm run build:demo From 83392fff15a52be36a66d5bd0457184ffe62aa26 Mon Sep 17 00:00:00 2001 From: AngyDev Date: Sun, 28 Sep 2025 11:08:14 +0100 Subject: [PATCH 2/2] refactor: separate lint and build jobs --- .github/workflows/pr-checks.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index e70ee0f..75b6813 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -6,9 +6,8 @@ on: - main jobs: - lint-and-build: + lint: runs-on: ubuntu-latest - steps: - name: Checkout repository uses: actions/checkout@v4 @@ -25,6 +24,21 @@ jobs: - name: Run Biome check (no autofix) run: npm run check:ci + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: npm + + - name: Install dependencies + run: npm ci + - name: Build library run: npm run build:lib