-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update yarn and husky hooks --------- Signed-off-by: Peter Macdonald <[email protected]>
- Loading branch information
1 parent
bc7f34d
commit c514815
Showing
14 changed files
with
13,276 additions
and
13,134 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,29 @@ | ||
<!-- | ||
Before submitting your pull request, please ensure you've done the following: | ||
- [ ] Reviewed the guidelines for contributing to this repository. | ||
- [ ] Checked for duplicate pull requests that might already be open. | ||
- [ ] Used clear, concise and meaningful commit messages. | ||
- [ ] Updated any relevant documentation. | ||
--> | ||
# 👋 Thanks for contributing | ||
|
||
## What type of PR is this? | ||
## What's this PR about? | ||
|
||
Please check the category that applies: | ||
<!-- Please give us a brief description of what you're working on --> | ||
|
||
- [ ] Feature | ||
- [ ] Bug Fix | ||
- [ ] Refactor | ||
- [ ] Documentation Update | ||
### Type of change | ||
|
||
## Description | ||
- [ ] 🌟 New feature | ||
- [ ] 🐛 Bug fix | ||
- [ ] 📝 Documentation update | ||
- [ ] 🧹 Code cleanup/refactor | ||
|
||
Please provide a brief summary of your changes and the problem they solve. | ||
### What does it solve? | ||
|
||
## Related Issues | ||
<!-- Help us understand the "before" and "after" --> | ||
|
||
If applicable, please link any related issues. Use "Closes" keyword to automatically close the issue on PR merge. | ||
### Testing | ||
|
||
Closes #<issue_number> | ||
- [ ] Added/updated tests | ||
- [ ] Need help with testing | ||
- [ ] N/A - documentation only | ||
|
||
## Testing | ||
### Related issues | ||
|
||
- [ ] I have included or updated unit tests for my changes. | ||
- [ ] I would like some help writing tests. | ||
- [ ] These changes do not require tests. | ||
<!-- Example: Closes #123 --> | ||
|
||
--- | ||
Need any help? Feel free to ask questions in your PR! 💬 |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Mark Stale PRs | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' # Run daily at midnight | ||
workflow_dispatch: # Allow manual trigger | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/stale@v9 | ||
with: | ||
days-before-pr-stale: 30 | ||
days-before-pr-close: 14 | ||
stale-pr-message: > | ||
👋 Hello there! We noticed this PR hasn't had any activity in the last 30 days. | ||
We love contributions and want to keep our PR queue healthy! If you're still interested in this PR: | ||
- Add a comment | ||
- Push a commit | ||
- Update the description | ||
No action needed if you'd like it to be closed automatically in 14 days. Thanks for contributing! ✨ | ||
close-pr-message: > | ||
Hi again! Since there hasn't been any activity in the last 44 days, we're gently closing this PR. | ||
Don't worry though - feel free to reopen it anytime if you'd like to continue working on it! | ||
We appreciate your contribution and are here to help if you need anything. 🙌 | ||
stale-pr-label: 'stale' | ||
exempt-pr-labels: 'ready,work-in-progress,blocked' | ||
|
||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
operations-per-run: 100 | ||
ascending: true | ||
remove-stale-when-updated: true |
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Run Tests | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test: | ||
name: Test on Node 18 | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '18.x' | ||
|
||
- name: Clean Yarn Cache | ||
run: yarn cache clean | ||
|
||
- name: Cache Node.js modules | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/yarn | ||
key: yarn-${{ runner.OS }}-18-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
yarn-${{ runner.OS }}-18- | ||
- name: Install Dependencies | ||
run: yarn install --immutable | ||
|
||
- name: TypeScript Type Check | ||
run: yarn tsc:full | ||
|
||
- name: Run Tests | ||
run: yarn test:all --coverage | ||
|
||
- name: Upload results to Codecov | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Welcome | ||
|
||
on: | ||
pull_request_target: | ||
types: [opened] | ||
issues: | ||
types: [opened] | ||
|
||
jobs: | ||
welcome: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
issue-message: "👋 Thanks for opening your first issue! Someone will review it soon." | ||
pr-message: "🎉 Thanks for your first PR! We'll review it as soon as possible." |
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 |
---|---|---|
@@ -1,4 +1,24 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
echo "🔍 Checking pre-commit requirements..." | ||
|
||
npx lint-staged | ||
echo "🧹 Running lint-staged checks..." | ||
# Run lint-staged and store exit code | ||
yarn lint-staged | ||
LINT_RESULT=$? | ||
|
||
# Prettier Check | ||
echo "🧹 Running prettier checks..." | ||
yarn prettier:check | ||
PRETTIER_RESULT=$? | ||
|
||
# Run tests | ||
echo "🧪 Running tests..." | ||
yarn test:changed | ||
TEST_RESULT=$? | ||
|
||
# Exit with error if either check failed | ||
if [ $LINT_RESULT -ne 0 ] || [ $TEST_RESULT -ne 0 ] || [ $PRETTIER_RESULT -ne 0 ]; then | ||
echo "❌ Pre-commit checks failed" | ||
exit 1 | ||
fi | ||
|
||
echo "✅ Pre-commit checks passed" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,13 +1,11 @@ | ||
httpTimeout: 300000 | ||
compressionLevel: mixed | ||
|
||
nodeLinker: node-modules | ||
enableGlobalCache: true | ||
|
||
npmRegistryServer: 'https://registry.npmjs.org/' | ||
httpTimeout: 300000 | ||
|
||
plugins: | ||
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs | ||
spec: '@yarnpkg/plugin-workspace-tools' | ||
nodeLinker: node-modules | ||
|
||
yarnPath: .yarn/releases/yarn-3.6.4.cjs | ||
npmRegistryServer: "https://registry.npmjs.org/" | ||
|
||
enableGlobalCache: true | ||
yarnPath: .yarn/releases/yarn-4.5.1.cjs |
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
5 changes: 0 additions & 5 deletions
5
plugins/opa-demo-backend/src/services/TodoListService/types.ts
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
Oops, something went wrong.