-
-
Notifications
You must be signed in to change notification settings - Fork 638
WIP - Fix Pro Rubocop and other CI - will split up #2034
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 5 commits
c6d2bd9
8723893
e47b626
d8205a6
1cb3a3a
b34c1de
239048a
5ad8d84
1155e30
961d778
209d3e2
25c43da
eb3f4be
bcf3156
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 |
|---|---|---|
|
|
@@ -57,37 +57,37 @@ | |
| script/ci-changes-detector "$BASE_REF" | ||
| shell: bash | ||
|
|
||
| examples: | ||
| build-examples-and-test-generators: | ||
| needs: detect-changes | ||
| # Run on master, workflow_dispatch, OR when generators needed | ||
| if: | | ||
| github.ref == 'refs/heads/master' || github.event_name == 'workflow_dispatch' || needs.detect-changes.outputs.run_generators == 'true' | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| include: | ||
| # Always run: Latest versions (fast feedback on PRs) | ||
| - ruby-version: '3.4' | ||
| dependency-level: 'latest' | ||
| # Master and workflow_dispatch: Minimum supported versions (full coverage) | ||
| - ruby-version: '3.2' | ||
| dependency-level: 'minimum' | ||
| exclude: | ||
| # Skip minimum dependency matrix on regular PRs (run only on master/workflow_dispatch/force_run/full-ci label) | ||
| - ruby-version: ${{ github.event_name == 'pull_request' && github.ref != 'refs/heads/master' && inputs.force_run != true && needs.detect-changes.outputs.has_full_ci_label != 'true' && '3.2' || '' }} | ||
| dependency-level: ${{ github.event_name == 'pull_request' && github.ref != 'refs/heads/master' && inputs.force_run != true && needs.detect-changes.outputs.has_full_ci_label != 'true' && 'minimum' || '' }} | ||
| dependency-level: ${{ (github.ref == 'refs/heads/master' || inputs.force_run == true || needs.detect-changes.outputs.has_full_ci_label == 'true') && ['minimum'] || ['latest', 'minimum']}} | ||
| env: | ||
| SKIP_YARN_COREPACK_CHECK: 0 | ||
| BUNDLE_FROZEN: ${{ matrix.dependency-level == 'minimum' && 'false' || 'true' }} | ||
| runs-on: ubuntu-22.04 | ||
| steps: | ||
| - name: Translate matrix for Ruby and Node versions | ||
| id: translate-matrix | ||
| run: | | ||
| if [ "${{ matrix.dependency-level }}" == "latest" ]; then | ||
| echo "ruby-version=3.4" >> "$GITHUB_OUTPUT" | ||
| echo "node-version=22" >> "$GITHUB_OUTPUT" | ||
| else | ||
| echo "ruby-version=3.2" >> "$GITHUB_OUTPUT" | ||
| echo "node-version=20" >> "$GITHUB_OUTPUT" | ||
| fi | ||
|
Comment on lines
+83
to
+92
Contributor
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. Inconsistency: Translate matrix step computes node-version but it's ignored on line 95. The "Translate matrix for Ruby and Node versions" step (lines 74–83) outputs both This is problematic because:
Apply this diff to use the translated node-version: - name: Setup Node
uses: actions/setup-node@v4
with:
- node-version: 20
+ node-version: ${{ steps.translate-matrix.outputs.node-version }}
# TODO: Re-enable yarn caching once Node.js V8 cache crash is fixed
# Tracking: https://github.com/actions/setup-node/issues/1028
# cache: yarn
# cache-dependency-path: '**/yarn.lock'Also applies to: 95-95 🤖 Prompt for AI Agents |
||
| - uses: actions/checkout@v4 | ||
| with: | ||
| persist-credentials: false | ||
| - name: Setup Ruby | ||
| uses: ruby/setup-ruby@v1 | ||
| with: | ||
| ruby-version: ${{ matrix.ruby-version }} | ||
| ruby-version: ${{ steps.translate-matrix.outputs.ruby-version }} | ||
| bundler: 2.5.9 | ||
| - name: Setup Node | ||
| uses: actions/setup-node@v4 | ||
|
|
@@ -113,7 +113,7 @@ | |
| uses: actions/cache@v4 | ||
| with: | ||
| path: vendor/bundle | ||
| key: package-app-gem-cache-${{ hashFiles('Gemfile.lock') }}-ruby${{ matrix.ruby-version }}-${{ matrix.dependency-level }} | ||
| key: package-app-gem-cache-${{ hashFiles('Gemfile.lock') }}-ruby${{ steps.translate-matrix.outputs.ruby-version }}-${{ matrix.dependency-level }} | ||
| - id: get-sha | ||
| run: echo "sha=\"$(git rev-parse HEAD)\"" >> "$GITHUB_OUTPUT" | ||
| - name: Install Node modules with Yarn for renderer package | ||
|
|
@@ -150,5 +150,5 @@ | |
| - name: Store test results | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: main-rspec-${{ github.run_id }}-${{ github.job }}-ruby${{ matrix.ruby-version }}-${{ matrix.dependency-level }} | ||
| name: main-rspec-${{ github.run_id }}-${{ github.job }}-ruby${{ steps.translate-matrix.outputs.ruby-version }}-${{ matrix.dependency-level }} | ||
| path: ~/rspec | ||
Uh oh!
There was an error while loading. Please reload this page.