Skip to content

Commit

Permalink
resolved issues
Browse files Browse the repository at this point in the history
  • Loading branch information
aali309 committed Sep 25, 2023
1 parent a2fb590 commit 5b25a82
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci-build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ on:
required: false
type: boolean
default: false
run-tests-only:
type: boolean
default: false
outputs:
image-version:
description: the Cryostat application version that will be built
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/pr-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ jobs:

start-comment:
runs-on: ubuntu-latest
needs: [check-before-build]
if: ${{ needs.check-before-build.output.result == 'success' }}
steps:
- name: Capture Date and Time
id: date-time
Expand All @@ -85,9 +87,11 @@ jobs:
with:
message: |
Workflow started at ${{steps.date-time.outputs.date-time}}.
Workflow run [Link](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}).
build-and-test:
needs: [code-analysis, checkout-branch]
needs: [checkout-branch]
strategy:
matrix:
arch: [amd64, arm64]
Expand All @@ -102,6 +106,7 @@ jobs:
checkout-repo: ${{ needs.checkout-branch.outputs.PR_repo }}
checkout-ref: ${{ needs.checkout-branch.outputs.PR_head_ref }}
skip-itests: ${{ matrix.arch != 'amd64' }}
run-tests-only: true
- name: Set BUILD_TEST_EXECUTED flag
id: set-build-test-executed
run: echo "BUILD_TEST_EXECUTED=true" >> $GITHUB_ENV
Expand All @@ -118,6 +123,7 @@ jobs:
checkout-repo: ${{ needs.checkout-branch.outputs.PR_repo }}
checkout-ref: ${{ needs.checkout-branch.outputs.PR_head_ref }}
skip-itests: ${{ matrix.arch != 'amd64' }}
run-tests-only: true

check-test-results:
runs-on: ubuntu-latest
Expand All @@ -126,7 +132,7 @@ jobs:
- name: Check Test Results
id: check-results
run: |
if [ ... ]; then
if [$? -eq 0]; then
echo "Tests passed."
echo "::set-output name=test-status::success"
else
Expand Down

0 comments on commit 5b25a82

Please sign in to comment.