-
Notifications
You must be signed in to change notification settings - Fork 3
perf(ci): use nix profile install instead of nix develop #295
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -26,9 +26,12 @@ jobs: | |||||||
|
|
||||||||
| - name: Setup Nix | ||||||||
| uses: ./.github/actions/setup-nix | ||||||||
| with: | ||||||||
| tools: gitleaks | ||||||||
| skip-pnpm-install: 'true' | ||||||||
|
|
||||||||
| - name: Run Gitleaks | ||||||||
| run: nix develop --command gitleaks detect --source . --config .gitleaks.toml | ||||||||
| run: gitleaks detect --source . --config .gitleaks.toml | ||||||||
|
|
||||||||
| lint: | ||||||||
| runs-on: ubuntu-latest | ||||||||
|
|
@@ -37,8 +40,10 @@ jobs: | |||||||
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||||||||
| - name: Setup Nix | ||||||||
| uses: ./.github/actions/setup-nix | ||||||||
| with: | ||||||||
|
||||||||
| with: | |
| with: | |
| # Keep this tools list in sync with flake.nix (e.g. buildInputs) to avoid drift. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing the cache-nix-action without replacement may negatively impact CI performance. While the PR description shows performance improvements in the short term, subsequent CI runs will need to re-download and rebuild Nix packages every time since there's no caching mechanism. Consider adding
nix-community/cache-nix-actionor another caching strategy back to maintain performance benefits across multiple CI runs.