Skip to content

Commit b2bf295

Browse files
jordanbreen28jordanbreen28
authored andcommitted
(CONT-731) - Implement reusable workflows
This commit introduces reusable workflows to this tool
1 parent 4d16069 commit b2bf295

File tree

6 files changed

+43
-105
lines changed

6 files changed

+43
-105
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: "ci"
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- "main"
7+
workflow_dispatch:
8+
9+
jobs:
10+
spec:
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
ruby_version:
15+
- '2.5'
16+
- '2.7'
17+
name: "spec (ruby ${{ matrix.ruby_version }})"
18+
uses: "puppetlabs/cat-github-actions/.github/workflows/gem_ci.yml@main"
19+
secrets: "inherit"
20+
with:
21+
ruby_version: ${{ matrix.ruby_version }}

.github/workflows/nightly.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: "nightly"
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
workflow_dispatch:
7+
8+
jobs:
9+
spec:
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
ruby_version:
14+
- '2.5'
15+
- '2.7'
16+
name: "spec (ruby ${{ matrix.ruby_version }})"
17+
uses: "puppetlabs/cat-github-actions/.github/workflows/gem_ci.yml@main"
18+
secrets: "inherit"
19+
with:
20+
ruby_version: ${{ matrix.ruby_version }}

.github/workflows/snyk.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/workflows/stale.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ source ENV['GEM_SOURCE'] || 'https://rubygems.org'
22

33
gem 'bolt'
44
gem 'puppet_litmus'
5+
56
ruby_version_segments = Gem::Version.new(RUBY_VERSION.dup).segments
67
minor_version = ruby_version_segments[0..1].join('.')
78
group :development do
@@ -12,6 +13,7 @@ group :development do
1213
gem 'github_changelog_generator', require: false if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.5.0')
1314
gem 'io-event', '0.4.0' # later versions require Ruby 3
1415
gem 'webmock'
16+
gem 'concurrent-ruby', '= 1.1.10', require: false
1517
end
1618

1719
# Evaluate Gemfile.local and ~/.gemfile if they exist

0 commit comments

Comments
 (0)