Skip to content

Merge branch 'main' of https://github.com/WorkWorkLabs/WorkWork #1

Merge branch 'main' of https://github.com/WorkWorkLabs/WorkWork

Merge branch 'main' of https://github.com/WorkWorkLabs/WorkWork #1

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
# Particle API Configuration
CLIENT: ${{ secrets.CLIENT }}
PROJECT_ID: ${{ secrets.PROJECT_ID }}
SERVER: ${{ secrets.SERVER }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run linting
run: npm run lint
- name: Run tests
run: npm test
- name: Build
run: npm run build
env:
# Database URL for build (can be a dummy for type checking)
DATABASE_URL: ${{ secrets.DATABASE_URL }}
# Particle API
PARTICLE_CLIENT: ${{ secrets.CLIENT }}
PARTICLE_PROJECT_ID: ${{ secrets.PROJECT_ID }}
PARTICLE_SERVER: ${{ secrets.SERVER }}