-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (27 loc) · 986 Bytes
/
Copy pathpr-check.yml
File metadata and controls
35 lines (27 loc) · 986 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
name: PR Check
on:
pull_request:
branches: [master]
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
# Auth for transitive @callmetechie/gatecontrol-config-hash via GitHub Packages (.npmrc).
NODE_AUTH_TOKEN: ${{ secrets.GC_PAT }}
jobs:
test:
name: Test & Build Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 22
- name: Clone core dependency
run: |
git clone https://github.com/CallMeTechie/gatecontrol-client-core.git .core
node -e "const p=require('./package.json'); p.dependencies['@gatecontrol/client-core']='file:.core'; require('fs').writeFileSync('package.json',JSON.stringify(p,null,2)+'\n')"
- name: Install dependencies
run: npm install --no-audit --no-fund
- name: Run syntax check
run: npm test
- name: Check for security issues
run: npm audit --audit-level=high || true