-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(actions): testing separate job for evaluation
- Loading branch information
1 parent
0604cbc
commit 2d50d1f
Showing
3 changed files
with
71 additions
and
20 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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Compliance Evaluation | ||
|
||
on: | ||
# Manual trigger | ||
workflow_dispatch: | ||
inputs: | ||
flavor: | ||
type: string | ||
description: "Flavor of the source package to test" | ||
required: true | ||
# Triggered by pull-request-conditionals.yaml | ||
workflow_call: | ||
inputs: | ||
flavor: | ||
type: string | ||
description: "Flavor of the source package to test" | ||
required: true | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: write | ||
|
||
jobs: | ||
evaluate: | ||
runs-on: ubuntu-latest | ||
name: Evaluate | ||
# env: | ||
# UDS_PKG: ${{ inputs.package }} | ||
steps: | ||
# Used to execute the uds run command | ||
- name: Checkout repository | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
|
||
- name: Download assessment | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: ${{ inputs.flavor }}-assessment-results | ||
|
||
- name: Evaluate Compliance | ||
id: compliance-evaluation | ||
if: ${{ inputs.package == 'all' && inputs.test_type == 'install' }} | ||
run: uds run test-compliance-evaluate --no-progress | ||
|
||
# steps in this action only run when there has been a previous failure - will indicate success thereafter | ||
# need to think about how much noise this could create - noise currently = good | ||
- name: Notify Lula Team of Compliance Assessment Results | ||
if: ${{ always() }} | ||
uses: ./.github/actions/notify-lula | ||
with: | ||
state: ${{ steps.compliance-evaluation.outcome }} | ||
flavor: ${{ inputs.flavor }} | ||
ghToken: ${{ secrets.GITHUB_TOKEN }} |
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
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