-
Notifications
You must be signed in to change notification settings - Fork 123
46 lines (40 loc) · 1.04 KB
/
check.yml
File metadata and controls
46 lines (40 loc) · 1.04 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: check
on:
push:
branches:
- "**"
paths:
- ".github/workflows/check.yml"
- "assets/**"
- "**.py"
pull_request:
branches:
- "**"
paths:
- ".github/workflows/check.yml"
- "assets/**"
- "**.py"
workflow_dispatch:
jobs:
resource:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node
uses: actions/setup-node@v4
with:
node-version: 22
- name: Run maa-checker
run: |
npm ci
npx @nekosu/maa-tools check
- name: Install maafw
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade maafw --pre
- name: Validate JSON Schema
run: |
python -m pip install jsonschema==4.26.0 referencing==0.37.0
python tools/validate_schema.py --schema-dir deps/tools --resource-dirs assets/resource --exclude-dirs assets/resource/announcement --interface-files assets/interface.json