-
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (53 loc) · 1.51 KB
/
Copy pathvalidate-gext.yml
File metadata and controls
65 lines (53 loc) · 1.51 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Validate GNOME Extension
on: [push, pull_request]
permissions:
contents: read
security-events: write
actions: read
jobs:
eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: '20'
- name: Cache npm dependencies
uses: actions/cache@v6
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install ESLint
run: npm install eslint@^9.0.0 @eslint/js@^9.0.0
- name: Lint with GJS rules
run: npx eslint src
ego-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Cache ego-lint
uses: actions/cache@v6
id: cache-ego
with:
path: .ego-lint
key: ${{ runner.os }}-ego-lint-v0.1.31
- name: Fetch ego-lint
if: steps.cache-ego.outputs.cache-hit != 'true'
uses: actions/checkout@v7
with:
repository: ZviBaratz/gnome-extension-reviewer
ref: v0.1.31
path: .ego-lint
- name: Run EGO compliance checks
run: .ego-lint/ego-lint --report src
codeql:
name: 'CodeQL Security Scan'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: github/codeql-action/init@v4
with:
languages: 'javascript'
- uses: github/codeql-action/analyze@v4