-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (26 loc) · 707 Bytes
/
Copy pathci.yml
File metadata and controls
27 lines (26 loc) · 707 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: CI
on: [push, pull_request]
jobs:
lint-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install backend dependencies
run: cd backend && npm ci
- name: Install frontend dependencies
run: cd frontend && npm ci
- name: TypeScript check
run: cd frontend && npx tsc -b --noEmit
- name: Frontend build
run: cd frontend && npx vite build
- name: Start server and run tests
run: |
cd backend
node src/app.js &
sleep 3
node --test tests/*.test.js
env:
CI: true