File tree Expand file tree Collapse file tree 6 files changed +85
-29
lines changed Expand file tree Collapse file tree 6 files changed +85
-29
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- name : PR Build Check
1+ name : Build
22
33on :
4- pull_request :
5- branches : [main]
4+ workflow_call :
65
76jobs :
87 build :
1817 cache : ' npm'
1918
2019 - name : Install dependencies
21- run : npm install
20+ run : npm ci
2221
2322 - name : Run build
2423 run : npm run build
24+
25+ - name : Save Build folders
26+ uses : actions/cache/save@v4
27+ with :
28+ path : build/
29+ key : build-cache-${{ github.run_id }}-${{ github.run_attempt }}
Original file line number Diff line number Diff line change 1+ name : Run Checks
2+
3+ on :
4+ workflow_call :
5+
6+ jobs :
7+ lint :
8+ runs-on : ubuntu-latest
9+
10+ steps :
11+ - uses : actions/checkout@v4
12+
13+ - name : Setup Node.js
14+ uses : actions/setup-node@v4
15+ with :
16+ node-version : ' 22'
17+ cache : ' npm'
18+
19+ - name : Install dependencies
20+ run : npm ci
21+
22+ - name : Restore the build folders
23+ uses : actions/cache/restore@v4
24+ with :
25+ path : build/
26+ key : build-cache-${{ github.run_id }}-${{ github.run_attempt }}
27+
28+ - name : Run linting
29+ run : npm run lint
Original file line number Diff line number Diff line change 1+ ---
2+ name : ' CodeQL Scan for GitHub Actions Workflows'
3+
4+ on :
5+ push :
6+ branches : [main]
7+ paths : ['.github/workflows/**']
8+ pull_request :
9+ branches : [main]
10+ paths : ['.github/workflows/**']
11+
12+ jobs :
13+ analyze :
14+ name : Analyze GitHub Actions workflows
15+ runs-on : ubuntu-latest
16+ permissions :
17+ actions : read
18+ contents : read
19+ security-events : write
20+
21+ steps :
22+ - uses : actions/checkout@v4
23+
24+ - name : Initialize CodeQL
25+ uses : github/codeql-action/init@v3
26+ with :
27+ languages : actions
28+
29+ - name : Run CodeQL Analysis
30+ uses : github/codeql-action/analyze@v3
31+ with :
32+ category : actions
Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : ['*']
6+ pull_request :
7+ branches : ['*']
8+
9+ jobs :
10+ build :
11+ uses : ./.github/workflows/build.yml
12+
13+ check :
14+ needs : build
15+ uses : ./.github/workflows/check.yml
You can’t perform that action at this time.
0 commit comments