From bf64ef189b16b7ccb3dfaf6b3ae461f2f50d4ea2 Mon Sep 17 00:00:00 2001 From: Eric Murray <77291605+eric-murray@users.noreply.github.com> Date: Fri, 2 Jun 2023 14:09:26 +0100 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c069463..9ef0662 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,13 +1,24 @@ on: [push] jobs: - test_swagger_editor_validator_remote: + test_swagger_editor_validator_service: runs-on: ubuntu-latest - name: Swagger Editor Validator Remote + name: Swagger Editor Validator 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: char0n/swagger-editor-validate@v1.3.2 with: + swagger-editor-url: http://localhost/ definition-file: my.yml