Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

style: add code-style check to regular test #110

Merged
merged 2 commits into from
Nov 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 0 additions & 56 deletions .github/workflows/code-style.yaml

This file was deleted.

11 changes: 11 additions & 0 deletions .github/workflows/test-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,17 @@ jobs:
- name: Compile source
run: npx tsc

- name: Compile TypeScript
run: npx tsc

- name: Check source code with eslint
run:
npx eslint --fix --ext .js,.ts,.jsx,.tsx --ignore-pattern
commitlint.connfig.js --ignore-path .gitignore ./

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

- name: Run tests
env:
IOT_HUB_NAME: ${{ needs.test-resources.outputs.app-name }}IotHub
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist/