Skip to content

Commit 67c8a6b

Browse files
committed
feat .github/workflows/ci.yml Environment variable references containing the Particle API
1 parent 24ab587 commit 67c8a6b

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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 }}

0 commit comments

Comments
 (0)