forked from gimenete/rubocop-action
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from luizfonseca/feat/ruby-3-support
feat!: Ruby 3+ support
- Loading branch information
Showing
4 changed files
with
40 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
FROM ruby:2.6.5-alpine | ||
RUN apk add --no-cache --update build-base linux-headers git | ||
FROM ruby:3.3.1-slim-bookworm | ||
|
||
LABEL com.github.actions.name="Rubocop Code Checks" | ||
LABEL com.github.actions.description="Lint your Ruby code in parallel to your builds" | ||
|
@@ -8,5 +7,11 @@ LABEL com.github.actions.color="red" | |
|
||
LABEL maintainer="Luiz Fonseca <[email protected]>" | ||
|
||
RUN gem install rubocop -v 1.63.4 | ||
RUN gem install rubocop-rspec -v 2.29.2 | ||
RUN gem install rubocop-performance -v 1.21.0 | ||
RUN gem install rubocop-rails -v 2.24.1 | ||
|
||
COPY lib /action/lib | ||
|
||
ENTRYPOINT ["/action/lib/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,3 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
gem install rubocop -v 0.80.1 | ||
gem install rubocop-rspec -v 1.38.1 | ||
gem install rubocop-performance -v 1.5.2 | ||
gem install rubocop-rails -v 2.4.2 | ||
|
||
ruby /action/lib/index.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters