Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: test
on:
push:
branches: [master]
pull_request:
jobs:
rspec:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install ImageMagick
run: sudo apt-get update && sudo apt-get install -y imagemagick
- uses: ruby/setup-ruby@v1
with:
ruby-version: .ruby-version
bundler-cache: true
- run: bundle exec rspec
1 change: 0 additions & 1 deletion .ruby-gemset

This file was deleted.

2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.7.8
3.4.12
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

28 changes: 15 additions & 13 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ PATH
lambda_convert (1.0.0)
aws-sdk-lambda (~> 1.0)
aws-sdk-s3 (~> 1.0)
rexml (~> 3.2)

GEM
remote: https://rubygems.org/
Expand All @@ -30,22 +31,23 @@ GEM
aws-sigv4 (1.11.0)
aws-eventstream (~> 1, >= 1.0.2)
base64 (0.2.0)
diff-lcs (1.2.5)
diff-lcs (1.6.2)
jmespath (1.6.2)
logger (1.6.6)
rspec (3.3.0)
rspec-core (~> 3.3.0)
rspec-expectations (~> 3.3.0)
rspec-mocks (~> 3.3.0)
rspec-core (3.3.2)
rspec-support (~> 3.3.0)
rspec-expectations (3.3.1)
rexml (3.4.4)
rspec (3.13.2)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.6)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.5)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.3.0)
rspec-mocks (3.3.2)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.8)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.3.0)
rspec-support (3.3.0)
rspec-support (~> 3.13.0)
rspec-support (3.13.7)

PLATFORMS
ruby
Expand All @@ -55,4 +57,4 @@ DEPENDENCIES
rspec

BUNDLED WITH
1.17.3
2.6.9
2 changes: 2 additions & 0 deletions lambda_convert.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ Gem::Specification.new do |s|
s.license = 'MIT'
s.add_runtime_dependency 'aws-sdk-lambda', '~> 1.0'
s.add_runtime_dependency 'aws-sdk-s3', '~> 1.0'
# aws-sdk-s3 needs an XML parser; REXML is a bundled (not default) gem since Ruby 3.0
s.add_runtime_dependency 'rexml', '~> 3.2'
end
5 changes: 4 additions & 1 deletion spec/cli_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@
end
end

context 'simple lambda resize' do
# Requires real AWS credentials for the Lambda function and S3 bucket in
# LambdaConvert::Config; set LAMBDA_CONVERT_INTEGRATION=1 to run it.
context 'simple lambda resize',
skip: (ENV['LAMBDA_CONVERT_INTEGRATION'] == '1' ? false : 'needs AWS credentials') do
let(:tempfile) { Tempfile.new('output') }
subject do
Open3.capture2(
Expand Down
Loading