forked from AceDataCloud/Nexior
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (40 loc) · 1.28 KB
/
Copy pathci.yaml
File metadata and controls
52 lines (40 loc) · 1.28 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
name: check
on:
pull_request:
branches: [main]
# Cancel any in-flight `check` run on the same PR branch when a new commit
# lands. Without this, every PR push leaves the previous check still running
# to completion — fine for safety, costly for the org Actions minute budget.
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Install dependencies
run: npm ci
- name: Run lint
run: npm run lint
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.12'
- name: i18n key coverage
# Block any PR (including auto-translate PRs) where any non-base
# locale is missing zh-CN keys. See translate_i18n.py for the
# diff-fill translator that prevents the gap in the first place.
run: python3 scripts/check_i18n_coverage.py
- name: Run tests
run: npm run test:run
- name: Build
run: npm run build