Skip to content

CI: replace broken Docker actions with ruby/setup-ruby#24

Open
kitcommerce wants to merge 1 commit intomasterfrom
ci/fix-github-actions
Open

CI: replace broken Docker actions with ruby/setup-ruby#24
kitcommerce wants to merge 1 commit intomasterfrom
ci/fix-github-actions

Conversation

@kitcommerce
Copy link

Summary

Fixes broken CI caused by deprecated workarea-commerce/ci/* Docker actions. All of these actions are pinned to ruby:2.6 (EOL) and use node12 runner runtime (also deprecated), causing every CI run to fail.

Changes

  • Static analysis: Replaced Docker-based bundler-audit@v1 and rubocop@v1 with ruby/setup-ruby@v1 + direct gem execution
  • JS/SCSS linting: Replaced Docker-based eslint@v1 and stylelint@v1 with actions/setup-node@v4 + yarn + direct CLI execution
  • Tests: Replaced Docker-based test@v1 with native GitHub Actions services (MongoDB 4.4, Elasticsearch 5.6.16, Redis 6) + bin/rails directly
  • Ruby matrix: Primary 2.7, secondary 3.2 (fail-fast disabled)
  • Actions versions: actions/checkout@v4, ruby/setup-ruby@v1, actions/setup-node@v4
  • Gemfile: Added bundler-audit gem (required for bundle exec bundler-audit)

Part of

workarea-commerce/workarea#724 — fixing CI across all 31 plugin repos

The workarea-commerce/ci/* Docker actions (bundler-audit@v1, rubocop@v1,
eslint@v1, stylelint@v1, test@v1) are pinned to ruby:2.6 and use node12
runtime, both of which are deprecated and fail on modern GitHub runners.

Changes:
- Replace workarea-commerce/ci/bundler-audit@v1 with bundle exec bundler-audit
- Replace workarea-commerce/ci/rubocop@v1 with bundle exec rubocop
- Replace workarea-commerce/ci/eslint@v1 with yarn + eslint directly
- Replace workarea-commerce/ci/stylelint@v1 with yarn + stylelint directly
- Replace workarea-commerce/ci/test@v1 with native GH Actions services
  (MongoDB 4.4, Elasticsearch 5.6.16, Redis 6) + direct bin/rails commands
- Add Ruby 2.7/3.2 matrix for test jobs
- Use actions/checkout@v4 and ruby/setup-ruby@v1
- Add bundler-audit to Gemfile

Closes workarea-commerce/workarea#724
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant