Skip to content

Commit e17b8e7

Browse files
author
Valentin Schneider-Lunitz
committed
CI: update build.yml
chore: update OpenAPI Validate Action to v1.5.1 and add Puppeteer environment variables
1 parent 061574c commit e17b8e7

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,18 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- name: Setup Node.js environment
10-
uses: actions/setup-node@v2.5.1
10+
uses: actions/setup-node@v4
1111
with:
1212
node-version: 14.x
1313
# Comes with npm 6. For newer Node, encountered: https://github.com/npm/cli/issues/3359
1414
- run: npm install -g @redocly/openapi-cli && npm install -g redoc-cli
1515
- run: npm install -g gh-openapi-docs
1616
- name: Check out repository code
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v4
1818
- run: gh-openapi-docs
1919
- name: Deploy 🚀
20-
uses: JamesIves/github-pages-deploy-action@v4.2.2
20+
uses: JamesIves/github-pages-deploy-action@v4
2121
with:
2222
branch: gh-pages
23+
clean: true # Clean only if on the main branch
2324
folder: .

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ jobs:
4242
- name: Check out head branch
4343
uses: actions/checkout@v4
4444
- name: Run OpenAPI Validate Action
45-
uses: swaggerexpert/swagger-editor-validate@v1
45+
uses: swaggerexpert/[email protected]
46+
env:
47+
PUPPETEER_NO_SANDBOX: "true"
48+
PUPPETEER_EXECUTABLE_PATH: "/usr/bin/chromium-browser"
4649
with:
4750
definition-file: openapi/workflow_execution_service.openapi.yaml

0 commit comments

Comments
 (0)