-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #398 from h0tw1r3/cat-workflows
replace gha workflows
- Loading branch information
Showing
8 changed files
with
84 additions
and
329 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,20 @@ | ||
--- | ||
name: "ci" | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- labeled | ||
- synchronize | ||
branches: | ||
- "main" | ||
paths-ignore: | ||
- '**.md' | ||
- 'examples/**' | ||
- 'LICENSE' | ||
- 'CODEOWNERS' | ||
- 'AUTHORS' | ||
workflow_dispatch: | ||
inputs: | ||
debug: | ||
description: "Debug" | ||
type: boolean | ||
required: false | ||
default: true | ||
run_spec: | ||
description: "Run Spec job" | ||
type: boolean | ||
required: false | ||
default: true | ||
run_acceptance: | ||
description: "Run Acceptance job" | ||
type: boolean | ||
required: false | ||
default: false | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
Matrix: | ||
uses: ./.github/workflows/matrix.yml | ||
with: | ||
flags: "--exclude-platforms '[\"Ubuntu-18.04\"]'" # TODO: remove after postgres module update | ||
Spec: | ||
if: ${{ github.event_name == 'pull_request' || inputs.run_spec == 'true' }} | ||
needs: Matrix | ||
uses: ./.github/workflows/module_spec.yml | ||
secrets: inherit | ||
with: | ||
debug: ${{ github.events.inputs.debug == 'true' || contains(github.event.pull_request.labels.*.name, 'debug') }} | ||
ignore_dependency_check: true # TODO: remove after module updates | ||
matrix: ${{ needs.Matrix.outputs.spec_matrix }} | ||
uses: "puppetlabs/cat-github-actions/.github/workflows/module_ci.yml@main" | ||
secrets: "inherit" | ||
|
||
Acceptance: | ||
if: ${{ github.event_name == 'pull_request' || inputs.run_acceptance == 'true' }} | ||
needs: [ Matrix, Spec ] | ||
uses: ./.github/workflows/module_acceptance.yml | ||
secrets: inherit | ||
needs: Spec | ||
uses: "puppetlabs/cat-github-actions/.github/workflows/module_acceptance.yml@main" | ||
secrets: "inherit" | ||
with: | ||
debug: ${{ github.events.inputs.debug == 'true' || contains(github.event.pull_request.labels.*.name, 'debug') }} | ||
matrix: ${{ needs.Matrix.outputs.acceptance_matrix }} | ||
runs_on: ubuntu-20.04 # TODO: cgroupv1 containers do not provision on ubuntu-latest | ||
runs_on: "ubuntu-20.04" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
name: Labeller | ||
|
||
on: | ||
issues: | ||
types: | ||
- opened | ||
- labeled | ||
- unlabeled | ||
pull_request_target: | ||
types: | ||
- opened | ||
- labeled | ||
- unlabeled | ||
|
||
jobs: | ||
label: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- uses: puppetlabs/[email protected] | ||
name: Label issues or pull requests | ||
with: | ||
label_name: community | ||
label_color: '5319e7' | ||
org_membership: puppetlabs | ||
fail_if_member: 'true' | ||
token: ${{ secrets.IAC_COMMUNITY_LABELER }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
name: "mend" | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- synchronize | ||
schedule: | ||
- cron: "0 0 * * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
mend: | ||
uses: "puppetlabs/cat-github-actions/.github/workflows/mend_ruby.yml@main" | ||
secrets: "inherit" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.