Skip to content

Commit

Permalink
build-test
Browse files Browse the repository at this point in the history
  • Loading branch information
mwangggg committed Jul 26, 2023
1 parent 23e1446 commit db8cba6
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
jobs:
check-needs-triage-not-applied:
runs-on: ubuntu-latest
if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}}
if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test')
steps:
- name: Fail if needs-triage label applied
if: ${{ contains(github.event.pull_request.labels.*.name, 'needs-triage')}}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci-build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ on:
jobs:
get-pom-properties:
runs-on: ubuntu-latest
if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}}
if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test')
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -46,7 +46,7 @@ jobs:

build-image:
runs-on: ubuntu-latest
if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}}
if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test')
needs: [get-pom-properties]
steps:
- name: Install qemu
Expand Down Expand Up @@ -91,9 +91,9 @@ jobs:

integration-tests:
runs-on: ubuntu-latest
if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}}
needs: [build-image]
if: ${{ ! inputs.skip-itests }}
if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test')
steps:
- name: Install xpath
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci-code-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:
jobs:
spotless:
runs-on: ubuntu-latest
if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}}
if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test')
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -29,7 +29,7 @@ jobs:

spotbugs:
runs-on: ubuntu-latest
if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}}
if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test')
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -56,7 +56,7 @@ jobs:

shellcheck:
runs-on: ubuntu-latest
if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}}
if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test')
steps:
- uses: actions/checkout@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependent-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ on:
jobs:
check:
runs-on: ubuntu-latest
if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}}
if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test')
steps:
- uses: z0al/dependent-issues@v1
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/image-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
delete-images:
name: Delete PR-scoped test images
runs-on: ubuntu-latest
if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}}
if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test')
steps:
- uses: r26d/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
contents: read
pull-requests: write
runs-on: ubuntu-latest
if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}}
if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test')
steps:
- uses: actions/labeler@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linked-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
jobs:
verify-linked-issue:
runs-on: ubuntu-latest
if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}}
if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test')
if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]'
name: Verify Pull Request references Issue
steps:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pr-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ on:
jobs:
code-analysis:
uses: ./.github/workflows/ci-code-analysis.yml
if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}}
if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test')
with:
checkout-repo: ${{ github.event.pull_request.head.repo.full_name }}
checkout-ref: ${{ github.event.pull_request.head.ref }}
Expand All @@ -36,7 +36,7 @@ jobs:
matrix:
arch: [amd64, arm64]
uses: ./.github/workflows/ci-build-image.yml
if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}}
if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test')
with:
build-arch: ${{ matrix.arch }}
checkout-repo: ${{ github.event.pull_request.head.repo.full_name }}
Expand All @@ -47,7 +47,7 @@ jobs:

push-to-ghcr:
runs-on: ubuntu-latest
if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}}
if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test')
strategy:
matrix:
arch: [amd64, arm64]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-labeled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
jobs:
check-pr-label-and-comment:
runs-on: ubuntu-latest
if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}}
if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test')
steps:
- uses: yashhy/[email protected]
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/push-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,33 +17,33 @@ on:
jobs:
code-analysis:
uses: ./.github/workflows/ci-code-analysis.yml
if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}}
with:
checkout-repo: ${{ github.event.pull_request.head.repo.full_name }}
checkout-ref: ${{ github.event.pull_request.head.ref }}
secrets: inherit
if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test')
if: github.repository_owner == 'cryostatio'
build-and-test-amd64:
uses: ./.github/workflows/ci-build-image.yml
if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}}
secrets: inherit
with:
build-arch: amd64
if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test')
if: github.repository_owner == 'cryostatio'
build-and-test-arm64:
uses: ./.github/workflows/ci-build-image.yml
if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}}
secrets: inherit
with:
build-arch: arm64
skip-itests: true
if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test')
if: github.repository_owner == 'cryostatio'
push-to-quay:
runs-on: ubuntu-latest
if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}}
needs: [code-analysis, build-and-test-amd64, build-and-test-arm64]
env:
CRYOSTAT_IMG: quay.io/cryostat/cryostat
if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test')
if: always() && github.repository_owner == 'cryostatio'
steps:
- uses: actions/download-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ on:
jobs:
update_release_draft:
runs-on: ubuntu-latest
if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}}
if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test')
steps:
# Drafts your next Release notes as Pull Requests are merged into "main"
- uses: release-drafter/release-drafter@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/semantic-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
jobs:
main:
runs-on: ubuntu-latest
if: ${{ github.event.issue.pull_request && containd(github.event.comment.body, '/build-test')}}
if: github.event.issue.pull_request && contains(github.event.comment.body, '/build-test')
steps:
- uses: amannn/[email protected]
env:
Expand Down

0 comments on commit db8cba6

Please sign in to comment.