Skip to content

Commit

Permalink
Use shared foreman github actions (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
dosas authored Jul 1, 2024
1 parent 16b20e3 commit cba7623
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: CI

on: # yamllint disable-line rule:truthy
pull_request:
push:
branches:
- master

concurrency:
group: ${{ github.ref_name }}
cancel-in-progress: true

jobs:
rubocop:
name: Rubocop
uses: theforeman/actions/.github/workflows/rubocop.yml@v0

test:
name: Tests
needs: rubocop
uses: theforeman/actions/.github/workflows/test-gem.yml@v0
with:
command: bundle exec rake test
...
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require:

AllCops:
NewCops: enable
TargetRubyVersion: 2.5
TargetRubyVersion: 2.7
Exclude:
- 'extra/**/*.rb'
- 'vendor/**/*'
Expand Down
4 changes: 2 additions & 2 deletions smart_proxy_dns_infoblox.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ Gem::Specification.new do |s|
s.homepage = 'https://github.com/theforeman/smart_proxy_dns_infoblox'

s.summary = "Infoblox DNS provider plugin for Foreman's smart proxy"
s.description = "Infoblox DNS provider plugin for Foreman's smart proxy"
s.description = "Infoblox DNS provider plugin for Foreman's smart proxy."

s.files = Dir['{config,lib,bundler.d}/**/*'] + ['README.md', 'LICENSE']
s.test_files = Dir['test/**/*']

s.required_ruby_version = '>= 2.5'
s.required_ruby_version = '>= 2.7'

s.add_runtime_dependency('infoblox', '~> 3.0')
end

0 comments on commit cba7623

Please sign in to comment.