2021-08-12 17:45:50 +00:00
|
|
|
name: CI - WebUI
|
2021-03-23 14:20:37 +00:00
|
|
|
|
|
|
|
on: [pull_request, push]
|
|
|
|
|
|
|
|
jobs:
|
2021-08-19 03:21:34 +00:00
|
|
|
ci:
|
|
|
|
name: Check
|
2021-08-12 17:55:43 +00:00
|
|
|
runs-on: ubuntu-latest
|
2021-08-19 03:21:34 +00:00
|
|
|
|
2021-03-23 14:20:37 +00:00
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: src/webui/www
|
|
|
|
|
|
|
|
steps:
|
2021-08-14 06:54:15 +00:00
|
|
|
- name: Checkout repository
|
2021-08-12 17:49:47 +00:00
|
|
|
uses: actions/checkout@v2
|
2021-03-23 14:20:37 +00:00
|
|
|
|
2021-08-14 06:54:15 +00:00
|
|
|
- name: Setup nodejs
|
2021-08-12 17:49:47 +00:00
|
|
|
uses: actions/setup-node@v2
|
|
|
|
with:
|
2021-08-13 03:05:28 +00:00
|
|
|
node-version: 'lts/*'
|
2021-03-23 14:20:37 +00:00
|
|
|
|
2021-08-14 06:54:15 +00:00
|
|
|
- name: Install tools
|
2021-08-12 17:49:47 +00:00
|
|
|
run: npm install
|
2021-03-23 14:20:37 +00:00
|
|
|
|
2021-08-14 06:54:15 +00:00
|
|
|
- name: Lint code
|
2021-08-12 17:49:47 +00:00
|
|
|
run: npm run lint
|
2021-03-23 14:20:37 +00:00
|
|
|
|
2021-08-14 06:54:15 +00:00
|
|
|
- name: Format code
|
2021-08-12 17:49:47 +00:00
|
|
|
run: |
|
|
|
|
npm run format
|
|
|
|
git diff --exit-code
|