From 84a7eeb446da303581bcc0a296c061e5c07e0165 Mon Sep 17 00:00:00 2001 From: Padma Jadav <147383171+Jadavpadma@users.noreply.github.com> Date: Thu, 16 Jan 2025 19:35:11 +0530 Subject: [PATCH] Update swagger-editor.yml --- .github/workflows/swagger-editor.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/swagger-editor.yml b/.github/workflows/swagger-editor.yml index a16abc9..530f5eb 100644 --- a/.github/workflows/swagger-editor.yml +++ b/.github/workflows/swagger-editor.yml @@ -31,7 +31,23 @@ jobs: - name: Checkout uses: actions/checkout@v3 - + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '16' + - name: Install dependencies + run: npm install + - name: Run Puppeteer tests + run: | + node -e "const puppeteer = require('puppeteer'); (async () => { + const browser = await puppeteer.launch({ + args: ['--no-sandbox', '--disable-setuid-sandbox'] + }); + const page = await browser.newPage(); + await page.goto('https://example.com'); + console.log(await page.title()); + await browser.close(); + })();" - name: Validate OpenAPI definition uses: char0n/swagger-editor-validate@v1.3.2