diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..b57008d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: Ruby + +on: + push: + pull_request: + workflow_dispatch: + +permissions: + contents: read # to fetch code (actions/checkout) + +jobs: + build: + strategy: + fail-fast: false + matrix: + ruby: + - "2.7" + - "3.0" + - "3.1" + - "3.2" + - "3.3" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: ruby/setup-ruby@v1 + with: + bundler-cache: true + ruby-version: ${{ matrix.ruby }} + - run: bundle exec rake diff --git a/Gemfile b/Gemfile index fa75df1..051091b 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,6 @@ source 'https://rubygems.org' gemspec + +# we need https://github.com/chrisk/fakeweb/commit/61f52b597286cdeab0bb6f56c3b40cd34e9fc380 +gem "fakeweb", github: "chrisk/fakeweb" diff --git a/createsend.gemspec b/createsend.gemspec index 400841b..1a2f454 100644 --- a/createsend.gemspec +++ b/createsend.gemspec @@ -8,7 +8,6 @@ Gem::Specification.new do |s| s.add_runtime_dependency 'hashie', '~> 3.0' s.add_runtime_dependency 'httparty', '~> 0.14' s.add_development_dependency 'rake', '~> 12.3.3' - s.add_development_dependency 'fakeweb', '~> 1.3' s.add_development_dependency 'jnunemaker-matchy', '~> 0.4' s.add_development_dependency 'shoulda-context', '~> 1.2' s.add_development_dependency 'simplecov', '~> 0'