Merge pull request #804 from microsoft/dependabot/github_actions/soft… #273
This file contains hidden or 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: OpenAPI Parser Validation for latest OpenAPI docs | |
| on: | |
| push: | |
| branches: [ main, support/v1, support/v2 ] | |
| pull_request: | |
| branches: [ main, support/v1, support/v2 ] | |
| jobs: | |
| list-descriptions: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| matrix: ${{ steps.set-descriptions.outputs.matrix }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - id: set-descriptions | |
| run: echo "::set-output name=matrix::$(ls test/**/Resources/*.{json,yaml} | sed 's/.*\///' | jq -R -s -c 'split("\n")[:-1]')" | |
| build: | |
| needs: list-descriptions | |
| strategy: | |
| matrix: | |
| descriptions: ${{ fromJson(needs.list-descriptions.outputs.matrix) }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: recursive | |
| - name: Validate description with redocly | |
| uses: fluximus-prime/redocly-cli-github-action@v1 | |
| with: | |
| args: 'lint test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/${{ matrix.descriptions }} --max-problems 1000 --config redocly.yaml' |