Skip to content

ci: fix Ameba linter job and specs job on current Crystal - #104

Merged
icyleaf merged 2 commits into
icyleaf:masterfrom
ralsina:ci-fix
Sep 6, 2026
Merged

ci: fix Ameba linter job and specs job on current Crystal#104
icyleaf merged 2 commits into
icyleaf:masterfrom
ralsina:ci-fix

Conversation

@ralsina

@ralsina ralsina commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Both CI jobs are currently failing on master:

  • Ameba job: the pinned ameba v1.6.4 no longer compiles with current Crystal (undefined method 'next_string_array_token' for Crystal::Lexer in the Build Ameba step), so linting has been broken for every recent run. This PR bumps it to v1.7.0, which supports Crystal >= 1.19.
  • Specs job: spec/markd_spec.cr compile-runs spec/fixtures/tartrazine.cr via {{ run(...) }}, which requires the tartrazine development dependency, so shards install --without-development breaks spec compilation on every OS in the matrix. This PR drops that flag.

Verification

  • Built ameba v1.7.0 locally with Crystal 1.21.0; it passes this repo's .ameba.yml after the small lint fixes included here (unused assignment in the tartrazine fixture, macro expression spacing in Node#inspect, redundant return in the inline parser).
  • crystal spec: 1422 examples, 0 failures.

Note: PR #78 (footnotes) carries equivalent fixes on its branch; these changes are line-identical, so merging both should be conflict-free.

- ameba v1.6.4 no longer compiles with current Crystal runners
(undefined method 'next_string_array_token' on Crystal::Lexer);
v1.7.0 supports Crystal >= 1.19.
- The specs job needs development dependencies: the tartrazine
require test compile-runs spec/fixtures/tartrazine.cr, so
--without-development breaks spec compilation on every OS.
- keep the Markd.to_html call in the tartrazine fixture without the
  unused assignment
- space out the macro expression in Node#inspect
- drop a redundant return in the inline parser
Comment thread .github/workflows/ci.yml
strategy:
matrix:
ameba-version: [v1.6.4]
ameba-version: [v1.7.0]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: It might be a good idea to switch to https://github.com/crystal-ameba/github-action entirely. It's easier and more efficient.
This could be a separate PR, though.

@icyleaf
icyleaf merged commit c45af09 into icyleaf:master Sep 6, 2026
5 checks passed
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.

4 participants