File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
8+
9+ env :
10+ # Particle API Configuration
11+ CLIENT : ${{ secrets.CLIENT }}
12+ PROJECT_ID : ${{ secrets.PROJECT_ID }}
13+ SERVER : ${{ secrets.SERVER }}
14+
15+ jobs :
16+ build :
17+ runs-on : ubuntu-latest
18+
19+ steps :
20+ - name : Checkout code
21+ uses : actions/checkout@v4
22+
23+ - name : Setup Node.js
24+ uses : actions/setup-node@v4
25+ with :
26+ node-version : ' 20'
27+ cache : ' npm'
28+
29+ - name : Install dependencies
30+ run : npm ci
31+
32+ - name : Run linting
33+ run : npm run lint
34+
35+ - name : Run tests
36+ run : npm test
37+
38+ - name : Build
39+ run : npm run build
40+ env :
41+ # Database URL for build (can be a dummy for type checking)
42+ DATABASE_URL : ${{ secrets.DATABASE_URL }}
43+ # Particle API
44+ PARTICLE_CLIENT : ${{ secrets.CLIENT }}
45+ PARTICLE_PROJECT_ID : ${{ secrets.PROJECT_ID }}
46+ PARTICLE_SERVER : ${{ secrets.SERVER }}
You can’t perform that action at this time.
0 commit comments