ci: Always format before lint
parent
60524e8cfa
commit
e9e91764c0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue