WOZ-6987 replaced remotly hosted VNG-Realisatie Common with local ver… #31
Workflow file for this run
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: lint-oas | |
| on: | |
| push: | |
| paths: | |
| - specificatie/*.yaml | |
| - .github/workflows/lint-oas.yml | |
| branches: | |
| - '**' | |
| workflow_dispatch: | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '16' | |
| - name: Install dependencies | |
| run: npm install | |
| - name: lint OAS | |
| run: npm run oas:lint | |
| - name: resolve OAS | |
| run: npm run oas:resolve | |
| - name: lint resolved OAS | |
| run: npm run oas:lint-genereervariant | |
| - name: push resolved to remote | |
| run: | | |
| if [ -n "$(git status specificatie/genereervariant/openapi.yaml --porcelain)" ]; then | |
| git config user.name "$GITHUB_ACTOR" | |
| git config user.email "$GITHUB_ACTOR@users.noreply.github.com" | |
| git add specificatie/genereervariant/openapi.* | |
| git commit -m "commit resolve artifacts" | |
| git push | |
| fi |