chore(deps-dev): bump eslint-plugin-prettier from 5.2.1 to 5.2.2 #1712
Workflow file for this run
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: Swagger Editor Validate CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
test_github_action: | |
runs-on: ubuntu-latest | |
name: Swagger Editor Validate - Repo integrity | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '20' | |
- run: npm ci | |
- run: npm run lint | |
test_swagger_editor_validate_service: | |
runs-on: ubuntu-latest | |
name: Swagger Editor Validate Service | |
# Service containers to run with `runner-job` | |
services: | |
# Label used to access the service container | |
swagger-editor: | |
# Docker Hub image | |
image: swaggerapi/swagger-editor | |
ports: | |
# Maps port 8080 on service container to the host 80 | |
- 80:8080 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Validate OpenAPI definition | |
uses: swaggerexpert/swagger-editor-validate@master | |
with: | |
swagger-editor-url: http://localhost/ | |
definition-file: examples/openapi-2-0.yaml | |
test_swagger_editor_validate_remote: | |
runs-on: ubuntu-latest | |
name: Swagger Editor Validate Remote | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Validate OpenAPI definition | |
uses: swaggerexpert/swagger-editor-validate@master | |
with: | |
definition-file: examples/openapi-2-0.yaml | |
test_swagger_editor_error: | |
runs-on: ubuntu-latest | |
name: Swagger Editor Validate | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Validate OpenAPI definition | |
continue-on-error: true | |
id: validate | |
uses: swaggerexpert/swagger-editor-validate@master | |
with: | |
definition-file: examples/openapi-2-0-error.yaml | |
- name: Check for failure | |
if: steps.validate.outcome != 'failure' | |
run: exit 1 | |
- name: Check for error message | |
if: ${{ !contains('Definition contains errors', steps.validate.outputs.stdout.contains) }} | |
run: exit 1 | |
test_swagger_editor_ignore_error: | |
runs-on: ubuntu-latest | |
name: Swagger Editor Ignore Errors | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Validate OpenAPI definition | |
uses: swaggerexpert/swagger-editor-validate@master | |
with: | |
definition-file: examples/openapi-2-0-error.yaml | |
ignore-error: examples/ignore-error.js |