-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 1.11 KB
/
validate-openapi-file.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Validate OpenAPI File
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
validate:
runs-on: ubuntu-22.04
timeout-minutes: 15
strategy:
matrix:
node-version: [20]
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2
- name: Build packages
uses: ./.github/actions/build
with:
packages-only: true
node-version: ${{ matrix.node-version }}
- name: Format OpenAPI File
run: pnpm @scalar/cli format ../../packages/galaxy/src/specifications/3.1.yaml
- name: Validate OpenAPI File
run: pnpm @scalar/cli validate ../../packages/galaxy/src/specifications/3.1.yaml
- name: Update Scalar Sandbox (https://sandbox.scalar.com/e/MeCHQ)
if: github.ref == 'refs/heads/main'
run: pnpm @scalar/cli share ../../packages/galaxy/src/specifications/3.1.yaml --token=${{ secrets.SANDBOX_TOKEN }}
env:
SANDBOX_TOKEN: ${{ secrets.SANDBOX_TOKEN }}