Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: update workflows #926

Merged
merged 3 commits into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
ci: fix git hooks setup
  • Loading branch information
halildurmus committed Nov 15, 2024
commit 1e655fe484f4c27434b47b434320ff111c5bc759
1 change: 1 addition & 0 deletions .github/workflows/health.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ jobs:
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip health check') }}
uses: halildurmus/workflows/.github/workflows/health.yml@main
with:
update_changelog_args: '--include-path "packages/win32/**/*" --repository "../../"'
working_directory: packages/win32
12 changes: 6 additions & 6 deletions lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,23 @@ pre-commit:
description: Formats the code according to the project's style guide
test_generator:
root: packages/generator
glob: '{lib,test}/**/*.dart'
glob: 'packages/generator/{lib,test}/**/*.dart'
run: dart run hooks:test
description: Runs the test suite of the generator to ensure all tests pass
test_win32:
root: packages/win32
glob: '{lib,test}/**/*.dart'
run: dart run hooks:test -- -j 1 --test-randomize-ordering-seed=random
glob: 'packages/win32/{lib,test}/**/*.dart'
run: dart run hooks:test
description: Runs the test suite of the win32 to ensure all tests pass
bump_version:
root: packages/win32
glob: 'lib/**/*.{dart}'
glob: 'packages/win32/lib/**/*.{dart}'
run: dart run hooks:bump_version
description: Bumps the package version based on changes
update_changelog:
root: packages/win32
glob: 'lib/**/*.{dart}'
run: dart run hooks:update_changelog
glob: 'packages/win32/lib/**/*.{dart}'
run: dart run hooks:update_changelog --include-path "packages/win32/**/*" --repository "../../"
description: Updates the `CHANGELOG.md` with recent changes

commit-msg:
Expand Down
6 changes: 6 additions & 0 deletions packages/generator/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ dependencies:
win32: ^5.6.0

dev_dependencies:
# Used for running Git hooks.
hooks:
git:
url: https://github.com/halildurmus/workflows.git
path: packages/hooks

# Help ensure that the code is well-written.
lints: ^5.0.0

Expand Down
File renamed without changes.
6 changes: 6 additions & 0 deletions packages/win32/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ dev_dependencies:
# Handle command-line arguments for example apps.
args: ^2.5.0

# Used for running Git hooks.
hooks:
git:
url: https://github.com/halildurmus/workflows.git
path: packages/hooks

# Help ensure that the code is well-written.
lints: ^5.0.0

Expand Down