chore(dependabot): remove docker versioning strategy #33
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
name: Test ApiDOM Validator | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
branches: | |
- main | |
jobs: | |
test_github_action: | |
runs-on: ubuntu-latest | |
outputs: | |
output1: ${{ steps.test1.outcome }} | |
output2: ${{ steps.test2.outcome }} | |
steps: | |
- uses: actions/checkout@v4 | |
- id: test1 | |
name: "Test 1: Validate at Severity level 1 (Errors)" | |
uses: swaggerexpert/apidom-validate@main | |
with: | |
definition-file: ./.github/workflows/fixtures/openapi.json | |
- id: test2 | |
name: "Test 2: Validate at Severity level 4 (Hints)" | |
if: success() || failure() | |
uses: swaggerexpert/apidom-validate@main | |
with: | |
definition-file: ./.github/workflows/fixtures/openapi.json | |
fails-on: 4 | |
continue-on-error: true | |
verify_outcomes: | |
needs: test_github_action | |
runs-on: ubuntu-latest | |
steps: | |
- name: Compare Expected vs Actual Outcomes | |
run: | | |
echo "" | |
echo " Test | Definition File | Fails On Level | Expected Outcome | Actual Outcome" | |
echo "------|-----------------|----------------|------------------|----------------" | |
echo " 1 | openapi.json | 1 | success | ${{ needs.test_github_action.outputs['output1'] }}" | |
echo " 2 | openapi.json | 4 | failure | ${{ needs.test_github_action.outputs['output2'] }}" | |
echo "" | |
if [ "${{ needs.test_github_action.outputs['output1'] }}" == "success" ] && [ "${{ needs.test_github_action.outputs['output2'] }}" == "failure" ] ; then | |
echo "SUCCESS: Actual outcomes match expected outcomes." | |
exit 0 | |
else | |
echo "FAILED: Actual outcomes do not match expected outcomes." | |
exit 1 | |
fi |