Skip to content
This repository was archived by the owner on Feb 19, 2024. It is now read-only.

Commit 38f9011

Browse files
committed
style: add code-style check to regular test
Otherwise code-style issues are not detected on code changes, e.g. if dependencies change rules, or in case the author did not run them.
1 parent 3fbbc9a commit 38f9011

File tree

2 files changed

+4
-51
lines changed

2 files changed

+4
-51
lines changed

.github/workflows/code-style.yaml

Lines changed: 0 additions & 51 deletions
This file was deleted.

.github/workflows/semantic-release.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ jobs:
2929
run: npm ci --no-audit
3030
- name: Install peer dependencies
3131
run: npm i --no-save eslint typescript
32+
- name: Check source code with eslint
33+
run: npx eslint --fix --ext .js,.ts,.jsx,.tsx --ignore-pattern commitlint.config.js --ignore-path .gitignore ./
34+
- name: Check if source code is properly formatted
35+
run: npx prettier -c ./
3236
- run: npm test
3337
- name: Semantic release
3438
continue-on-error: true

0 commit comments

Comments
 (0)