Skip to content

Commit 3b1fece

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 da3f700 commit 3b1fece

File tree

3 files changed

+18
-54
lines changed

3 files changed

+18
-54
lines changed

.github/workflows/code-style.yaml

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

.github/workflows/pr.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ jobs:
2525
- name: Install dependencies
2626
run: npm ci --no-audit
2727

28+
- name: Compile TypeScript
29+
run: npx tsc
30+
31+
- name: Check source code with eslint
32+
run: npx eslint --fix --ext .js,.ts,.jsx,.tsx ./
33+
34+
- name: Check if source code is properly formatted
35+
run: npx prettier -c ./
36+
2837
- name: Run tests
2938
run: npm test
3039

.github/workflows/test-and-release.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ jobs:
3232
- name: Install dependencies
3333
run: npm ci --no-audit
3434

35+
- name: Compile TypeScript
36+
run: npx tsc
37+
38+
- name: Check source code with eslint
39+
run: npx eslint --fix --ext .js,.ts,.jsx,.tsx ./
40+
41+
- name: Check if source code is properly formatted
42+
run: npx prettier -c ./
43+
3544
- name: Run tests
3645
run: npm test
3746

0 commit comments

Comments
 (0)