-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (42 loc) · 1.06 KB
/
quality.yml
File metadata and controls
46 lines (42 loc) · 1.06 KB
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
name: quality
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 20
cache: npm
- run: npm ci
- run: npx eslint src/ --max-warnings 150
continue-on-error: true
secrets:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: scan for leaked secrets
uses: trufflesecurity/trufflehog@main
with:
extra_args: --only-verified
continue-on-error: true
ascii-only:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: verify ASCII-only in src/ and tests/
run: |
hits=$(LC_ALL=C grep -rnP '[^\x00-\x7F]' src/ tests/ --include='*.js' || true)
if [ -n "$hits" ]; then
echo "non-ASCII chars found:"
echo "$hits" | head -40
exit 1
fi
echo "ASCII-only: clean"