-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (29 loc) · 882 Bytes
/
ci.yml
File metadata and controls
37 lines (29 loc) · 882 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
28
29
30
31
32
33
34
35
36
37
# .github/workflows/ci.yml
name: Continuous Integration
# TODO: Production hardening:
# 1. Add a build step to ensure the project builds successfully.
# 2. Add a test step to run the full test suite.
# 3. Add steps for security scanning (e.g., Snyk, CodeQL).
# 4. Add e2e tests with Playwright (requires: npx playwright install --with-deps before tests)
on:
pull_request:
branches:
- main
jobs:
lint-and-format:
name: Lint and Format Check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Run ESLint
run: npm run lint
- name: Run Prettier Format Check
run: npm run format-check