mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-01-06 01:39:38 -06:00
add dependencies
This commit is contained in:
12
.github/workflows/check-format.yml
vendored
12
.github/workflows/check-format.yml
vendored
@@ -40,15 +40,17 @@ jobs:
|
||||
working-directory: server
|
||||
run: npm run format-check
|
||||
close-pr-if-needed:
|
||||
needs: [format-client, format-server]
|
||||
runs-on: ubuntu-latest
|
||||
needs: [format-client, format-server]
|
||||
if: |
|
||||
needs.format-client.result == 'failure' ||
|
||||
needs.format-server.result == 'failure'
|
||||
always() && (
|
||||
needs.format-client.result == 'failure' ||
|
||||
needs.format-server.result == 'failure'
|
||||
)
|
||||
steps:
|
||||
- name: Close PR
|
||||
uses: peter-evans/close-pull@v3
|
||||
with:
|
||||
comment: |
|
||||
❌ PR closed automatically because formatting failed in one or more modules.
|
||||
Please run `npm run format` in both `client/` and `server/` before pushing again.
|
||||
❌ Formatting check failed — PR auto-closed.
|
||||
Please run `npm run format` and push again.
|
||||
|
||||
Reference in New Issue
Block a user