Skip to content

Commit

Permalink
style: add code-style check to regular test
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
coderbyheart committed Nov 9, 2023
1 parent da3f700 commit 3b1fece
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 54 deletions.
54 changes: 0 additions & 54 deletions .github/workflows/code-style.yaml

This file was deleted.

9 changes: 9 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ jobs:
- name: Install dependencies
run: npm ci --no-audit

- name: Compile TypeScript
run: npx tsc

- name: Check source code with eslint
run: npx eslint --fix --ext .js,.ts,.jsx,.tsx ./

- name: Check if source code is properly formatted
run: npx prettier -c ./

- name: Run tests
run: npm test

Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/test-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ jobs:
- name: Install dependencies
run: npm ci --no-audit

- name: Compile TypeScript
run: npx tsc

- name: Check source code with eslint
run: npx eslint --fix --ext .js,.ts,.jsx,.tsx ./

- name: Check if source code is properly formatted
run: npx prettier -c ./

- name: Run tests
run: npm test

Expand Down

0 comments on commit 3b1fece

Please sign in to comment.