Skip to content

Commit

Permalink
ci: replace prettier with node package, add paths to fe and be CI stu…
Browse files Browse the repository at this point in the history
…ff :)))
  • Loading branch information
MattCMcCoy committed Feb 9, 2024
1 parent 6f7af32 commit 62ca9fd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 17 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/BackendCI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@ name: Backend CI

on:
push:
paths:
- 'backend/**'
branches: ['main']
pull_request:
paths:
- 'backend/**'
branches: ['main']

jobs:
Expand Down
21 changes: 12 additions & 9 deletions .github/workflows/FrontendCI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@ name: Frontend CI

on:
push:
paths:
- 'client/**'
branches: ['main']
pull_request:
paths:
- 'client/**'
branches: ['main']

jobs:
Expand All @@ -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
Expand Down
8 changes: 0 additions & 8 deletions cz.yaml

This file was deleted.

0 comments on commit 62ca9fd

Please sign in to comment.