Skip to content

Commit ad36ba0

Browse files
authored
Merge pull request #2 from bastelfreak/ci
Cleanup CI configuration
2 parents f56bbf2 + c479d7f commit ad36ba0

File tree

6 files changed

+24
-19
lines changed

6 files changed

+24
-19
lines changed

.github/workflows/ruby.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,28 @@
11
name: Ruby
22

3-
on: [push]
3+
on:
4+
pull_request: {}
5+
push:
6+
branches:
7+
- main
48

59
jobs:
610
build:
711

812
runs-on: ubuntu-latest
913
strategy:
1014
matrix:
11-
ruby: [ '2.5.x', '2.7.x' ]
15+
ruby:
16+
- 2.5
17+
- 2.7
1218
steps:
13-
- uses: actions/checkout@master
19+
- uses: actions/checkout@v4
1420
- name: Set up Ruby
15-
uses: actions/setup-ruby@v1
21+
uses: ruby/setup-ruby@v1
1622
with:
1723
ruby-version: ${{ matrix.ruby }}
24+
bundler-cache: true
1825
- run: |
19-
gem install bundler
20-
bundle install --jobs 4 --retry 3
2126
bundle exec rspec spec --color --format documentation --order random
2227
- name: Rubocop
2328
run: |

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -433,18 +433,18 @@ build_doc: false
433433
build_msi:
434434
puppet_for_the_win:
435435
ref: 'origin/master'
436-
repo: 'git://github.com/puppetlabs/puppet_for_the_win.git'
436+
repo: 'https://github.com/puppetlabs/puppet_for_the_win.git'
437437
facter:
438438
ref: 'refs/tags/2.1.0'
439-
repo: 'git://github.com/puppetlabs/facter.git'
439+
repo: 'https://github.com/puppetlabs/facter.git'
440440
hiera:
441441
ref: 'refs/tags/1.3.4'
442-
repo: 'git://github.com/puppetlabs/hiera.git'
442+
repo: 'https://github.com/puppetlabs/hiera.git'
443443
sys:
444444
ref:
445445
x86: 'origin/1.9.3-x86'
446446
x64: 'origin/2.0.0-x64'
447-
repo: 'git://github.com/puppetlabs/puppet-win32-ruby.git'
447+
repo: 'https://github.com/puppetlabs/puppet-win32-ruby.git'
448448
# Whether to present the Solaris 11 IPS packaging tasks
449449
# This requires suitable IPS packaging artifacts in the project in ext/ips
450450
build_ips: false
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"url": "git://github.com/puppetlabs/leatherman.git", "ref": "refs/tags/0.6.2"}
1+
{"url": "https://github.com/puppetlabs/leatherman.git", "ref": "refs/tags/0.6.2"}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"url": "git://github.com/puppetlabs/leatherman.git", "ref": "4eef05389ebf418b62af17406c7f9f13fa51f975"}
1+
{"url": "https://github.com/puppetlabs/leatherman.git", "ref": "4eef05389ebf418b62af17406c7f9f13fa51f975"}

spec/lib/packaging/util/git_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,11 @@
153153

154154
context '#remote_tagged?' do
155155
it 'reports Yes on tagged component' do
156-
expect(Pkg::Util::Git.remote_tagged?('git://github.com/puppetlabs/leatherman.git', 'refs/tags/0.6.2')).to be(true)
156+
expect(Pkg::Util::Git.remote_tagged?('https://github.com/puppetlabs/leatherman.git', 'refs/tags/0.6.2')).to be(true)
157157
end
158158

159159
it 'reports No on non-tagged component' do
160-
expect(Pkg::Util::Git.remote_tagged?('git://github.com/puppetlabs/leatherman.git', '4eef05389ebf418b62af17406c7f9f13fa51f975')).to be(false)
160+
expect(Pkg::Util::Git.remote_tagged?('https://github.com/puppetlabs/leatherman.git', '4eef05389ebf418b62af17406c7f9f13fa51f975')).to be(false)
161161
end
162162
end
163163
end

spec/lib/packaging/util/git_tag_spec.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,32 @@
44
describe "Pkg::Util::Git_tag" do
55
context "parse_ref!" do
66
it "fails for a ref that doesn't exist'" do
7-
expect { Pkg::Util::Git_tag.new("git://github.com/puppetlabs/leatherman.git", "garbagegarbage") }.to raise_error(RuntimeError, /ERROR : Not a ref or sha!/)
7+
expect { Pkg::Util::Git_tag.new("https://github.com/puppetlabs/leatherman.git", "garbagegarbage") }.to raise_error(RuntimeError, /ERROR : Not a ref or sha!/)
88
end
99
end
1010

1111
context "sha?" do
1212
it "sets ref type as a sha when passed a sha" do
13-
git_tag = Pkg::Util::Git_tag.new("git://github.com/puppetlabs/leatherman.git", "4eef05389ebf418b62af17406c7f9f13fa51f975")
13+
git_tag = Pkg::Util::Git_tag.new("https://github.com/puppetlabs/leatherman.git", "4eef05389ebf418b62af17406c7f9f13fa51f975")
1414
expect(git_tag.sha?).to eq(true)
1515
end
1616
end
1717

1818
context "branch?" do
1919
it "sets ref type as a branch when passed a branch" do
20-
git_tag = Pkg::Util::Git_tag.new("git://github.com/puppetlabs/leatherman.git", "main")
20+
git_tag = Pkg::Util::Git_tag.new("https://github.com/puppetlabs/leatherman.git", "main")
2121
expect(git_tag.branch?).to eq(true)
2222
end
2323
end
2424

2525
context "tag?" do
2626
it "sets ref type as a tag when passed a tag" do
27-
git_tag = Pkg::Util::Git_tag.new("git://github.com/puppetlabs/leatherman.git", "tags/0.6.2")
27+
git_tag = Pkg::Util::Git_tag.new("https://github.com/puppetlabs/leatherman.git", "tags/0.6.2")
2828
expect(git_tag.tag?).to eq(true)
2929
end
3030

3131
it "sets ref type as a tag when passed a fully qualified tag" do
32-
git_tag = Pkg::Util::Git_tag.new("git://github.com/puppetlabs/leatherman.git", "refs/tags/0.6.2")
32+
git_tag = Pkg::Util::Git_tag.new("https://github.com/puppetlabs/leatherman.git", "refs/tags/0.6.2")
3333
expect(git_tag.tag?).to eq(true)
3434
end
3535
end

0 commit comments

Comments
 (0)