Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,33 @@ jobs:
runs-on: ubuntu-latest

steps:
# 1️⃣ Checkout repo
- name: Checkout repository
uses: actions/checkout@v4

# 2️⃣ Setup Node.js with npm >= 9
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'
cache: 'npm' # caches node_modules and package-lock

# 3️⃣ Verify npm version (optional, good for debugging)
- name: Check npm version
run: npm -v

# 4️⃣ Install dependencies
- name: Install dependencies
run: npm install

# 5️⃣ Lint check
- name: Lint check
run: npm run lint

# 6️⃣ Build check
- name: Build check
run: npm run build

# 7️⃣ Run unit tests
- name: Run unit tests
run: npm test
run: npm test
Loading
Loading