Skip to content

Commit c189121

Browse files
committed
Use CI theforeman/action for smart proxy plugins
- Respect SMART_PROXY_BRANCH in Gemfile
1 parent bd3a949 commit c189121

File tree

2 files changed

+13
-25
lines changed

2 files changed

+13
-25
lines changed

.github/workflows/ci.yml

+12-24
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,18 @@
11
name: CI
22

33
on:
4-
- pull_request
5-
- push
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
9+
concurrency:
10+
group: ${{ github.ref_name }}-${{ github.workflow }}
11+
cancel-in-progress: true
612

713
jobs:
814
test:
9-
runs-on: ubuntu-latest
10-
strategy:
11-
fail-fast: false
12-
matrix:
13-
ruby:
14-
- "2.5"
15-
- "2.6"
16-
- "2.7"
17-
name: Ruby ${{ matrix.ruby }}
18-
steps:
19-
- uses: actions/checkout@v3
20-
- name: Install development headers
21-
run: sudo apt install libkrb5-dev libldap-dev libsasl2-dev -y
22-
- name: Install Ruby ${{ matrix.ruby }}
23-
uses: ruby/setup-ruby@v1
24-
with:
25-
ruby-version: ${{ matrix.ruby }}
26-
bundler-cache: true
27-
- name: Run tests
28-
run: bundle exec rake test
29-
- name: Verify gem builds
30-
run: gem build *.gemspec
15+
name: Tests
16+
uses: theforeman/actions/.github/workflows/smart_proxy_plugin.yml@v0
17+
with:
18+
extra_packages: "libkrb5-dev libldap-dev libsasl2-dev"

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ gemspec
55

66
group :development do
77
gem 'rack-test'
8-
gem 'smart_proxy', :git => 'https://github.com/theforeman/smart-proxy.git', :branch => 'develop'
8+
gem 'smart_proxy', github: 'theforeman/smart-proxy', branch: ENV.fetch('SMART_PROXY_BRANCH', 'develop')
99
end

0 commit comments

Comments
 (0)