iv-org / invidious

Invidious is an alternative front-end to YouTube
https://invidious.io
GNU Affero General Public License v3.0
16.47k stars 1.85k forks source link

CI: Check Crystal lint only on latest version #5042

Closed SamantazFox closed 3 weeks ago

SamantazFox commented 4 weeks ago

Required for #5014

Run the linter against a single version of Crystal, as recommended by @straight-shoota in the Crystal Matrix room:

I'd also suggest to run the formatter only against one version of the compiler. Formatter behaviour should not be expected to be forward compatible (we try to have at least one version overlap, but not necessarily more).
So there might be a patch release for 1.14 to make it accept the trailing comma. But that won't be ported back to earlier versions.

https://matrix.to/#/%23crystal-lang_crystal%3Agitter.im/%24_UuRZsBnmr5Q0OTQRiUaYDq1duOjXHZVfmoV3g0QJck?via=gitter.im&via=matrix.org&via=kde.org

I have also unified the way shards are installed and cached between the build and lint jobs to better use the cache.

Closes #5017