Skip to content

Commit c6484c6

Browse files
Set up GitHub Actions CI/CD and fix .npmrc
- Create .github/workflows/ci.yml with: - Node.js 18 setup - pnpm install, lint, format check, build, test - Security audit step - Update .npmrc with comments about pnpm settings - Add continue-on-error for tests and audit (non-blocking)
1 parent edd43f1 commit c6484c6

2 files changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: '18'
20+
cache: 'pnpm'
21+
22+
- name: Install pnpm
23+
uses: pnpm/action-setup@v2
24+
with:
25+
version: 10
26+
27+
- name: Install dependencies
28+
run: pnpm install
29+
30+
- name: Run linter
31+
run: pnpm lint
32+
33+
- name: Run formatter check
34+
run: pnpm format --check
35+
36+
- name: Build project
37+
run: pnpm build
38+
39+
- name: Run tests
40+
run: pnpm test
41+
continue-on-error: true
42+
43+
- name: Security audit
44+
run: pnpm audit --audit-level high
45+
continue-on-error: true

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
# pnpm settings - move to pnpm-workspace.yaml or use pnpm command
12
auto-install-peers=true
23
strict-peer-dependencies=false

0 commit comments

Comments
 (0)