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
|
|
|
|
- name: Check git diff
|
|
|
|
run: git diff
|
2021-05-19 08:34:07 +00:00
|
|
|
- name: Check if the git repository is clean
|
|
|
|
run: exit $( git status --porcelain --untracked-files=no | head -255 | wc -l )
|
2020-03-23 20:15:49 +00:00
|
|
|
- run: npm run lint
|
2022-01-17 18:40:37 +00:00
|
|
|
- run: for file in lang/*.json; do npx jsonlint -q $file || exit 1; done
|
2020-03-31 12:13:53 +00:00
|
|
|
- run: make
|