-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🌱 run pr title check on PR meta changes
This also brings the ansible-lint into the PR checks. Signed-off-by: David Zager <[email protected]>
- Loading branch information
Showing
4 changed files
with
66 additions
and
55 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,53 @@ | ||
name: Pull Request CI | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- 'release-*.*' | ||
|
||
jobs: | ||
detect-changes: | ||
runs-on: ubuntu-latest | ||
# Required permissions | ||
permissions: | ||
pull-requests: read | ||
# Set job outputs to values from filter step | ||
outputs: | ||
roles: ${{ steps.filter.outputs.roles }} | ||
steps: | ||
# For pull requests it's not necessary to checkout the code | ||
- uses: dorny/paths-filter@v2 | ||
id: filter | ||
with: | ||
filters: | | ||
roles: | ||
- 'roles/**' | ||
ansible-lint: | ||
needs: detect-changes | ||
when: ${{ needs.detect-changes.outputs.roles == 'true' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout PR branch | ||
uses: actions/checkout@v2 | ||
|
||
- name: Ansible Lint | ||
uses: ansible/ansible-lint-action@main | ||
with: | ||
path: "roles/" | ||
|
||
build-operator: | ||
needs: ansible-lint | ||
runs-on: ubuntu-latest | ||
env: | ||
IMG: ttl.sh/konveyor-operator-${{ github.sha }}:1h | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: make docker-build docker-push | ||
|
||
run-ci: | ||
needs: build-operator | ||
uses: konveyor/ci/.github/workflows/global-ci-bundle.yml@main | ||
with: | ||
operator: ttl.sh/konveyor-operator-${{ github.sha }}:1h |
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,13 @@ | ||
name: PR Title Check | ||
|
||
on: | ||
pull_request_target: | ||
types: [opened, edited, reopened, synchronize] | ||
|
||
jobs: | ||
verify-pr: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: konveyor/release-tools/cmd/verify-pr@main | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} |