Skip to content

Commit dec779c

Browse files
authored
Merge pull request #387 from puppetlabs/CONT-701-Implement_reusuable_workflows
2 parents 7ba3630 + 1a51a9b commit dec779c

File tree

3 files changed

+53
-2
lines changed

3 files changed

+53
-2
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ on:
77
pull_request:
88
branches:
99
- "main"
10-
schedule:
11-
- cron: "0 0 * * *"
1210
workflow_dispatch:
1311

1412
jobs:

.github/workflows/nightly.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: "ci"
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
workflow_dispatch:
7+
8+
jobs:
9+
10+
spec:
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
ruby_version:
15+
- '2.5'
16+
- '2.7'
17+
- '3.0'
18+
- '3.1'
19+
include:
20+
- ruby_version: '2.5'
21+
puppet_gem_version: '~> 6.0'
22+
- ruby_version: '2.7'
23+
puppet_gem_version: '~> 7.0'
24+
- ruby_version: '3.0'
25+
puppet_gem_version: '~> 7.0'
26+
- ruby_version: '3.1'
27+
puppet_gem_version: '~> 7.0'
28+
name: "spec (ruby ${{ matrix.ruby_version }} | puppet ${{ matrix.puppet_gem_version }})"
29+
uses: "puppetlabs/cat-github-actions/.github/workflows/gem_ci.yml@main"
30+
secrets: "inherit"
31+
with:
32+
ruby_version: ${{ matrix.ruby_version }}
33+
puppet_gem_version: ${{ matrix.puppet_gem_version }}
34+
35+
acceptance:
36+
needs: "spec"
37+
strategy:
38+
fail-fast: false
39+
matrix:
40+
ruby_version:
41+
- "2.5"
42+
- "2.7"
43+
- '3.0'
44+
- '3.1'
45+
name: "acceptance (ruby ${{ matrix.ruby_version }})"
46+
uses: "puppetlabs/cat-github-actions/.github/workflows/gem_acceptance.yml@main"
47+
secrets: "inherit"
48+
with:
49+
ruby_version: ${{ matrix.ruby_version }}

.github/workflows/release_prep.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@ on:
77
description: "The target for the release. This can be a commit sha or a branch."
88
required: false
99
default: "main"
10+
version:
11+
description: "Version of gem to be released."
12+
required: true
1013

1114
jobs:
1215
release_prep:
1316
uses: "puppetlabs/cat-github-actions/.github/workflows/gem_release_prep.yml@main"
1417
with:
1518
target: "${{ github.event.inputs.target }}"
19+
version: "${{ github.event.inputs.version }}"
1620
secrets: "inherit"

0 commit comments

Comments
 (0)