-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (36 loc) · 1012 Bytes
/
ci.yml
File metadata and controls
48 lines (36 loc) · 1012 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
38
39
40
41
42
43
44
45
46
47
48
name: CI
on:
pull_request:
branches: [main]
permissions:
contents: read
jobs:
ci:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: Use Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: TypeScript compilation check
run: npx tsc --noEmit
- name: Code formatting check
run: npx prettier --check "src/**/*.{ts,js,json}"
- name: Build project
run: npm run build
- name: Run tests
run: npm test || echo "No tests configured yet"
- name: Security audit
run: npm audit --audit-level moderate
- name: Test CLI installation
run: |
npm pack
npm install -g firebase-tools-cli-*.tgz
firebase-tools-cli --help
- name: All checks passed
run: echo "✅ All CI checks passed successfully!"