-
Notifications
You must be signed in to change notification settings - Fork 1
Wrorflows #5
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
base: main
Are you sure you want to change the base?
Wrorflows #5
Changes from all commits
ff6f0fa
92cac14
2dcb597
c46ba86
ac8655f
4d364bb
0066822
d4b87c1
a281bef
52aa02b
025f4e4
8b633e8
d68411c
ea3f08a
b7670c5
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 | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,18 +1,42 @@ | ||||||||||||||
| name: Rust-Build | ||||||||||||||
| name: Build Package CI | ||||||||||||||
|
|
||||||||||||||
| on: | ||||||||||||||
| push: | ||||||||||||||
| branches: | ||||||||||||||
| - main | ||||||||||||||
| branches: [main] | ||||||||||||||
| pull_request: | ||||||||||||||
| types: [opened, synchronize, reopened] | ||||||||||||||
| workflow_dispatch: | ||||||||||||||
| inputs: | ||||||||||||||
| beta_release: | ||||||||||||||
| description: Create beta release | ||||||||||||||
| type: boolean | ||||||||||||||
| default: false | ||||||||||||||
| required: false | ||||||||||||||
|
|
||||||||||||||
| concurrency: | ||||||||||||||
| group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && 'main' || github.ref_name }} | ||||||||||||||
| cancel-in-progress: ${{ github.ref_name != 'main' }} | ||||||||||||||
|
|
||||||||||||||
| jobs: | ||||||||||||||
| optimize_ci: | ||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||
| outputs: | ||||||||||||||
| skip: ${{ steps.check_skip.outputs.skip || steps.defaults.outputs.skip }} | ||||||||||||||
| steps: | ||||||||||||||
|
Comment on lines
+23
to
+25
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix outputs reference to undefined step (breaks evaluation).
outputs:
- skip: ${{ steps.check_skip.outputs.skip || steps.defaults.outputs.skip }}
+ skip: ${{ steps.check_skip.outputs.skip || 'false' }}📝 Committable suggestion
Suggested change
🧰 Tools🪛 actionlint (1.7.7)24-24: property "defaults" is not defined in object type {check_skip: {conclusion: string; outcome: string; outputs: {string => string}}} (expression) 🤖 Prompt for AI Agents |
||||||||||||||
| - uses: withgraphite/graphite-ci-action@v0.0.9 | ||||||||||||||
| id: check_skip | ||||||||||||||
| continue-on-error: true | ||||||||||||||
| with: | ||||||||||||||
| graphite_token: ${{ secrets.GRAPHITE_TOKEN }} | ||||||||||||||
|
|
||||||||||||||
| check: | ||||||||||||||
| name: Check | ||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||
| needs: [optimize_ci] | ||||||||||||||
| if: ${{ needs.optimize_ci.outputs.skip != 'true' }} | ||||||||||||||
| steps: | ||||||||||||||
| - name: Checkout sources | ||||||||||||||
| uses: actions/checkout@v2 | ||||||||||||||
| uses: actions/checkout@v4 | ||||||||||||||
|
|
||||||||||||||
| - name: Install toolchain | ||||||||||||||
| uses: actions-rs/toolchain@v1 | ||||||||||||||
|
|
@@ -32,9 +56,11 @@ jobs: | |||||||||||||
| test: | ||||||||||||||
| name: Test | ||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||
| needs: [optimize_ci] | ||||||||||||||
| if: ${{ needs.optimize_ci.outputs.skip != 'true' }} | ||||||||||||||
| steps: | ||||||||||||||
| - name: Checkout sources | ||||||||||||||
| uses: actions/checkout@v2 | ||||||||||||||
| uses: actions/checkout@v4 | ||||||||||||||
|
|
||||||||||||||
| - name: Install toolchain | ||||||||||||||
| uses: actions-rs/toolchain@v1 | ||||||||||||||
|
|
@@ -81,10 +107,9 @@ jobs: | |||||||||||||
| components: clippy | ||||||||||||||
|
|
||||||||||||||
| - name: Run clippy | ||||||||||||||
| uses: actions-rs/cargo@v1 | ||||||||||||||
| with: | ||||||||||||||
| command: clippy | ||||||||||||||
| args: --tests -- -D warnings --message-format=json &> clippy_report.json | ||||||||||||||
| shell: bash | ||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||
| run: | | ||||||||||||||
| cargo clippy --tests --message-format=json -- > clippy_report.json | ||||||||||||||
|
|
||||||||||||||
| - name: Setup sonarqube | ||||||||||||||
| uses: warchant/setup-sonar-scanner@v3 | ||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Pin Sonar scanner action to a commit SHA Another third-party action that should be immutable. - uses: warchant/setup-sonar-scanner@v3
+ uses: warchant/setup-sonar-scanner@<PINNED_COMMIT_SHA>📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||
|
|
||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -23,6 +23,6 @@ jobs: | |||||
| run: npx vitest run --coverage | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔷 Medium: With Vitest v3, coverage needs an explicit provider (e.g., @vitest/coverage-v8). Without it, coverage may be disabled or empty, resulting in misleading Codecov uploads.
Suggested change
|
||||||
|
|
||||||
| - name: Upload results to Codecov | ||||||
| uses: codecov/codecov-action@v5 | ||||||
| uses: codecov/codecov-action@v5.5.1 | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Pin Codecov action to a commit SHA (supply-chain hardening) Pinning third-party actions prevents unexpected changes from upstream. - - name: Upload results to Codecov
- uses: codecov/codecov-action@v5.5.1
+ - name: Upload results to Codecov
+ uses: codecov/codecov-action@<COMMIT_SHA>
with:
token: ${{ secrets.CODECOV_TOKEN }}
🤖 Prompt for AI Agents |
||||||
| with: | ||||||
| token: ${{ secrets.CODECOV_TOKEN }} | ||||||
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -36,6 +36,8 @@ tarpaulin-report.* | |||||||
| # integration tests | ||||||||
| e2e/gas_reports/* | ||||||||
|
|
||||||||
| .github | ||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
|
|
||||||||
|
Comment on lines
+39
to
+40
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do not ignore .github — this will block future CI/workflow updates. Adding Apply this diff: -.github
-📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||
|
|
||||||||
| temp* | ||||||||
| ts | ||||||||
|
|
||||||||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -23,3 +23,5 @@ | |||||||||
| 26, | ||||||||||
| ]).toString('hex'); | ||||||||||
| } | ||||||||||
|
|
||||||||||
| export const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms)); | ||||||||||
|
Check warning on line 27 in src/utils.ts
|
||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Codacy has a fix for the issue: Return values from promise executor functions cannot be read.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Codacy has a fix for the issue: ES2015 arrow function expressions are forbidden.
Suggested change
|
||||||||||
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.
The output expression now references 'steps.defaults.outputs.skip' as a fallback, but no step with id 'defaults' is defined. Consider either adding the corresponding step or updating the fallback expression.