2020-03-31 12:13:53 +00:00
|
|
|
name: Simple CI
|
2020-03-23 20:15:49 +00:00
|
|
|
|
|
|
|
on: [pull_request]
|
|
|
|
|
|
|
|
jobs:
|
2020-03-31 12:13:53 +00:00
|
|
|
run-ci:
|
|
|
|
name: Build Frontend
|
2020-03-23 20:15:49 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
2021-11-03 08:40:50 +00:00
|
|
|
node-version: '16.x'
|
2020-03-23 20:15:49 +00:00
|
|
|
- run: npm install
|
2021-10-15 18:53:50 +00:00
|
|
|
- name: Check git status
|
|
|
|
run: git status
|
2022-01-20 11:44:08 +00:00
|
|
|
- name: Normalize lang files to ensure sorted
|
|
|
|
run: npm run lang-sort
|
2021-05-19 08:34:07 +00:00
|
|
|
- name: Check if the git repository is clean
|
2022-03-31 07:48:56 +00:00
|
|
|
run: $(exit $(git status --porcelain --untracked-files=no | head -255 | wc -l)) || (echo "Dirty git tree"; git diff; exit 1)
|
2020-03-23 20:15:49 +00:00
|
|
|
- run: npm run lint
|
2022-01-21 08:38:04 +00:00
|
|
|
- run: for file in lang/*.json; do npx --yes jsonlint -q $file || exit 1; done
|
2022-07-20 12:31:17 +00:00
|
|
|
- env:
|
2022-09-13 07:36:00 +00:00
|
|
|
NODE_OPTIONS: '--max-old-space-size=8192'
|
2022-07-20 12:31:17 +00:00
|
|
|
run: make
|