-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: replace prettier with node package, add paths to fe and be CI stu…
…ff :)))
- Loading branch information
1 parent
6f7af32
commit 62ca9fd
Showing
3 changed files
with
16 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,12 @@ name: Frontend CI | |
|
||
on: | ||
push: | ||
paths: | ||
- 'client/**' | ||
branches: ['main'] | ||
pull_request: | ||
paths: | ||
- 'client/**' | ||
branches: ['main'] | ||
|
||
jobs: | ||
|
@@ -18,17 +22,16 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run Prettier | ||
id: prettier-run | ||
uses: rutajdash/[email protected] | ||
- name: Set up Node | ||
uses: actions/setup-node@v2 | ||
with: | ||
config_path: ./.prettierrc | ||
- name: Prettier Output | ||
if: ${{ failure() }} | ||
shell: bash | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Format Frontend | ||
run: | | ||
echo "The following files are not formatted:" | ||
echo "${{steps.prettier-run.outputs.prettier_output}}" | ||
cd client | ||
npm install prettier | ||
prettier --check . | ||
build: | ||
name: Build | ||
|