-
Notifications
You must be signed in to change notification settings - Fork 9
39 lines (31 loc) · 840 Bytes
/
Copy pathnodejs.yml
File metadata and controls
39 lines (31 loc) · 840 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Kenya API CI
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
# 1️⃣ Tests first — hard fail
- name: Run tests
run: yarn test
# 2️⃣ Lint / format — errors fail, warnings pass
- name: Biome check
run: yarn check
# or explicitly:
# run: yarn biome check . --error-on-warnings=false
# 3️⃣ Build only if everything above passed
- name: Build
run: yarn build