Skip to content

Commit d3c592b

Browse files
committed
replace gha workflows
1 parent 2525e61 commit d3c592b

File tree

8 files changed

+84
-329
lines changed

8 files changed

+84
-329
lines changed

.github/workflows/ci.yml

+8-49
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,20 @@
1+
---
12
name: "ci"
23

34
on:
45
pull_request:
5-
types:
6-
- opened
7-
- labeled
8-
- synchronize
96
branches:
107
- "main"
11-
paths-ignore:
12-
- '**.md'
13-
- 'examples/**'
14-
- 'LICENSE'
15-
- 'CODEOWNERS'
16-
- 'AUTHORS'
178
workflow_dispatch:
18-
inputs:
19-
debug:
20-
description: "Debug"
21-
type: boolean
22-
required: false
23-
default: true
24-
run_spec:
25-
description: "Run Spec job"
26-
type: boolean
27-
required: false
28-
default: true
29-
run_acceptance:
30-
description: "Run Acceptance job"
31-
type: boolean
32-
required: false
33-
default: false
34-
35-
concurrency:
36-
group: ${{ github.workflow }}-${{ github.ref }}
37-
cancel-in-progress: true
389

3910
jobs:
40-
Matrix:
41-
uses: ./.github/workflows/matrix.yml
42-
with:
43-
flags: "--exclude-platforms '[\"Ubuntu-18.04\"]'" # TODO: remove after postgres module update
4411
Spec:
45-
if: ${{ github.event_name == 'pull_request' || inputs.run_spec == 'true' }}
46-
needs: Matrix
47-
uses: ./.github/workflows/module_spec.yml
48-
secrets: inherit
49-
with:
50-
debug: ${{ github.events.inputs.debug == 'true' || contains(github.event.pull_request.labels.*.name, 'debug') }}
51-
ignore_dependency_check: true # TODO: remove after module updates
52-
matrix: ${{ needs.Matrix.outputs.spec_matrix }}
12+
uses: "puppetlabs/cat-github-actions/.github/workflows/module_ci.yml@main"
13+
secrets: "inherit"
14+
5315
Acceptance:
54-
if: ${{ github.event_name == 'pull_request' || inputs.run_acceptance == 'true' }}
55-
needs: [ Matrix, Spec ]
56-
uses: ./.github/workflows/module_acceptance.yml
57-
secrets: inherit
16+
needs: Spec
17+
uses: "puppetlabs/cat-github-actions/.github/workflows/module_acceptance.yml@main"
18+
secrets: "inherit"
5819
with:
59-
debug: ${{ github.events.inputs.debug == 'true' || contains(github.event.pull_request.labels.*.name, 'debug') }}
60-
matrix: ${{ needs.Matrix.outputs.acceptance_matrix }}
61-
runs_on: ubuntu-20.04 # TODO: cgroupv1 containers do not provision on ubuntu-latest
20+
runs_on: "ubuntu-20.04"

.github/workflows/labeller.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: Labeller
3+
4+
on:
5+
issues:
6+
types:
7+
- opened
8+
- labeled
9+
- unlabeled
10+
pull_request_target:
11+
types:
12+
- opened
13+
- labeled
14+
- unlabeled
15+
16+
jobs:
17+
label:
18+
runs-on: ubuntu-latest
19+
steps:
20+
21+
- uses: puppetlabs/[email protected]
22+
name: Label issues or pull requests
23+
with:
24+
label_name: community
25+
label_color: '5319e7'
26+
org_membership: puppetlabs
27+
fail_if_member: 'true'
28+
token: ${{ secrets.IAC_COMMUNITY_LABELER }}

.github/workflows/matrix.yml

-49
This file was deleted.

.github/workflows/mend.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: "mend"
3+
4+
on:
5+
pull_request_target:
6+
types:
7+
- opened
8+
- synchronize
9+
schedule:
10+
- cron: "0 0 * * *"
11+
workflow_dispatch:
12+
13+
jobs:
14+
mend:
15+
uses: "puppetlabs/cat-github-actions/.github/workflows/mend_ruby.yml@main"
16+
secrets: "inherit"

.github/workflows/module_acceptance.yml

-125
This file was deleted.

.github/workflows/module_spec.yml

-88
This file was deleted.

0 commit comments

Comments
 (0)