Skip to content

Commit

Permalink
testing actions
Browse files Browse the repository at this point in the history
  • Loading branch information
cuotos committed Jul 26, 2022
1 parent 01eb5c9 commit 745f933
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM ruby:2.7 as builder

WORKDIR /rumbda

COPY . /rumbda

RUN bundle install && gem build -o /rumbda/rumbda.gem rumbda.gemspec && gem install /rumbda/rumbda.gem && rm -rf /rumbda

ENTRYPOINT [ "rumbda" ]
12 changes: 12 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: 'rumbda'
inputs:
command:
description: "the command to pass to rumbda"
required: false
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.command }}


8 changes: 5 additions & 3 deletions rumbda.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ Gem::Specification.new do |spec|
spec.metadata["documentation_uri"] = "https://github.com/BloomAndWild/rumbda/blob/master/README.md"
spec.metadata["changelog_uri"] = "https://github.com/BloomAndWild/rumbda/blob/master/CHANGELOG.md"

spec.files = (Dir['lib/**/*.rb'] + Dir['exe/*'] + Dir['[A-Z]*']).reject do |f|
File.read('.gitignore').split.include?(f)
end
spec.files = Dir.chdir(File.expand_path(__dir__)) do
Dir['**/*'].keep_if { |file| File.file?(file) }.reject do |f|
(f == __FILE__) || f.match(%r{\A(?:(?:test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
end
end
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
Expand Down

0 comments on commit 745f933

Please sign in to comment.