Skip to content

feat: add "end" job to workflows expected to fail #9

feat: add "end" job to workflows expected to fail

feat: add "end" job to workflows expected to fail #9

name: Build and Test EICAR Rock
on:
push:
workflow_dispatch:
jobs:
build:
uses: canonical/oci-factory/.github/workflows/Build-Rock.yaml@main
with:
oci-archive-name: "eicar-rock"
rock-repo: canonical/rocks-toolbox
rock-repo-commit: rework_oci-factory_workflow_docs
rockfile-directory: eicar_rock/1.0/
test:
uses: canonical/oci-factory/.github/workflows/Test-Rock.yaml@main
needs: [build]
with:
oci-archive-name: "eicar-rock"
test-black-box: true

Check failure on line 21 in .github/workflows/build_and_test_eicar_rock.yaml

View workflow run for this annotation

GitHub Actions / Build and Test EICAR Rock

Invalid workflow file

The workflow is not valid. .github/workflows/build_and_test_eicar_rock.yaml (Line: 21, Col: 23): Invalid input, test-black-box is not defined in the referenced workflow. .github/workflows/build_and_test_eicar_rock.yaml (Line: 23, Col: 21): Invalid input, test-malware is not defined in the referenced workflow.
test-efficiency: true
test-malware: true
test-oci-compliance: true
test-vulnerabilities: true
end:
# we expect malware scan to fail, so we add a final job so PR checks pass.
if: ${{ !cancelled() }}
needs: [test]
runs-on: ubuntu-22.04
steps:
- run: |
echo Workflow complete!