Skip to content

Commit 3b6081d

Browse files
committed
Add foreman proxy CI action
1 parent 4501849 commit 3b6081d

File tree

2 files changed

+13
-26
lines changed

2 files changed

+13
-26
lines changed

.github/workflows/ci.yml

+11-25
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,16 @@
11
name: CI
22

3-
on:
4-
- pull_request
5-
- push
3+
on: pull_request
4+
5+
concurrency:
6+
group: ${{ github.ref_name }}-${{ github.workflow }}
7+
cancel-in-progress: true
68

79
jobs:
810
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
11+
name: Tests
12+
uses: theforeman/actions/.github/workflows/smart_proxy_plugin.yml@v0
13+
with:
14+
extra_packages: "libkrb5-dev libldap-dev libsasl2-dev"
15+
16+

smart_proxy_realm_ad_plugin.gemspec

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ Gem::Specification.new do |s|
55
s.name = 'smart_proxy_realm_ad_plugin'
66
s.version = Proxy::AdRealm::VERSION
77
s.date = Date.today.to_s
8-
s.license = 'GPL-3.0'
8+
s.license = 'GPL-3.0-only'
99
s.authors = ['Mårten Cassel']
1010
s.email = ['marten.cassel@gmail.com']
1111
s.homepage = 'https://github.com/theforeman/smart_proxy_realm_ad_plugin'
12+
s.required_ruby_version = '>= 2.7'
1213

1314
s.summary = "A realm ad provider plugin for Foreman's smart proxy"
1415
s.description = "A realm ad provider plugin for Foreman's smart proxy"

0 commit comments

Comments
 (0)