2020-03-31 12:13:53 +00:00
|
|
|
name: Simple CI
|
2020-03-23 20:15:49 +00:00
|
|
|
|
|
|
|
on: [pull_request]
|
|
|
|
|
|
|
|
jobs:
|
2022-10-03 07:03:07 +00:00
|
|
|
lint:
|
|
|
|
name: Lint
|
2020-03-23 20:15:49 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2022-10-03 07:17:44 +00:00
|
|
|
- uses: actions/setup-node@v3
|
2020-03-23 20:15:49 +00:00
|
|
|
with:
|
2022-10-03 07:17:44 +00:00
|
|
|
node-version: 16
|
|
|
|
cache: 'npm'
|
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)
|
2022-10-20 08:17:57 +00:00
|
|
|
- run: npm run lint:ci
|
2022-10-03 07:03:07 +00:00
|
|
|
linux-build:
|
|
|
|
name: Build Frontend (Linux)
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2022-10-03 07:17:44 +00:00
|
|
|
- uses: actions/setup-node@v3
|
2022-10-03 07:03:07 +00:00
|
|
|
with:
|
2022-10-03 07:17:44 +00:00
|
|
|
node-version: 16
|
|
|
|
cache: 'npm'
|
2022-10-03 07:03:07 +00:00
|
|
|
- run: npm install
|
2022-09-30 19:50:37 +00:00
|
|
|
- run: make
|
|
|
|
macos-ci:
|
|
|
|
name: Build Frontend (macOS)
|
|
|
|
runs-on: macOS-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2022-10-03 07:17:44 +00:00
|
|
|
- uses: actions/setup-node@v3
|
2022-09-30 19:50:37 +00:00
|
|
|
with:
|
2022-10-03 07:17:44 +00:00
|
|
|
node-version: 16
|
|
|
|
cache: 'npm'
|
2022-09-30 19:50:37 +00:00
|
|
|
- run: npm install
|
|
|
|
- run: make
|