1
0
Fork 0

ci: Always format before lint

pull/1/head
Ambrose Chua 2021-09-10 00:40:30 +08:00
parent 60524e8cfa
commit e9e91764c0
1 changed files with 3 additions and 1 deletions

View File

@ -33,7 +33,8 @@ jobs:
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- run: npm run format
- run: npm run format --if-present
- run: npm run lint --if-present -- --fix
- name: Commit changes if any
run: |
git config user.name "GitHub Actions"
@ -65,6 +66,7 @@ jobs:
${{ runner.os }}-node-
- run: npm ci
- run: npm run type-check --if-present
- run: npm run format --if-present
- run: npm run lint --if-present
# TODO: Generate and publish a HTML artifact
- run: npm start