From 6918b79215124e994e4400bd021e2a3debdf5a85 Mon Sep 17 00:00:00 2001 From: martencassel Date: Thu, 2 Jan 2025 19:52:37 +0100 Subject: [PATCH 1/2] Add foreman proxy CI action --- .github/workflows/ci.yml | 33 ++++++++------------------------- 1 file changed, 8 insertions(+), 25 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ad38651..3c3224c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,30 +1,13 @@ name: CI -on: - - pull_request - - push +on: pull_request + +concurrency: + group: ${{ github.ref_name }}-${{ github.workflow }} + cancel-in-progress: true jobs: test: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - ruby: - - "2.5" - - "2.6" - - "2.7" - name: Ruby ${{ matrix.ruby }} - steps: - - uses: actions/checkout@v3 - - name: Install development headers - run: sudo apt install libkrb5-dev libldap-dev libsasl2-dev -y - - name: Install Ruby ${{ matrix.ruby }} - uses: ruby/setup-ruby@v1 - with: - ruby-version: ${{ matrix.ruby }} - bundler-cache: true - - name: Run tests - run: bundle exec rake test - - name: Verify gem builds - run: gem build *.gemspec + name: Tests + uses: theforeman/actions/.github/workflows/smart_proxy_plugin.yml@v0 + From 415e243eaf2abdab24ad7acd683602498f53f507 Mon Sep 17 00:00:00 2001 From: martencassel Date: Tue, 18 Feb 2025 17:24:14 +0100 Subject: [PATCH 2/2] Drop Ruby < 2.2.2 support in Gemfile --- Gemfile | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Gemfile b/Gemfile index 2b15c7f..b62114e 100644 --- a/Gemfile +++ b/Gemfile @@ -2,11 +2,6 @@ source 'https://rubygems.org' gemspec group :development do - if RUBY_VERSION < '2.2.2' - gem 'rack-test', '~> 0.7.0' - else - gem 'rack-test' - end - + gem 'rack-test' gem 'smart_proxy', :git => 'https://github.com/theforeman/smart-proxy.git', :branch => 'develop' end