Skip to content

Commit

Permalink
commiting pulled requests
Browse files Browse the repository at this point in the history
  • Loading branch information
VanshikaSabharwal committed Nov 7, 2024
2 parents 255a6e1 + efbf6d3 commit 9715b32
Show file tree
Hide file tree
Showing 13 changed files with 1,977 additions and 199 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,13 @@ jobs:
- name: Get changed TypeScript files
id: changed-files
uses: tj-actions/changed-files@v40

- name: Check formatting
if: steps.changed-files.outputs.only_changed != 'true'
run: npm run format:check

- name: Run formatting if check fails
if: failure()
run: npm run format

- name: Check for type errors
if: steps.changed-files.outputs.only_changed != 'true'
Expand Down Expand Up @@ -260,4 +263,3 @@ jobs:
run: |
echo "Error: Pull request target branch must be 'develop'. Please refer PR_GUIDELINES.md"
exit 1
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

# npm run format:fix
npm run format:fix
# npm run lint:fix
npm run lint-staged
npm run typecheck
Expand Down
2 changes: 1 addition & 1 deletion scripts/__mocks__/@dicebear/core.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const createAvatar = jest.fn(() => {
return {
toDataUriSync: jest.fn(() => 'mocked-data-uri'),
toDataUri: jest.fn(() => 'mocked-data-uri'),
};
});
Loading

0 comments on commit 9715b32

Please sign in to comment.