refactor: remote graphite trigger validation #1074
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: Validate OpenAPI on PR | |
on: | |
- pull_request | |
jobs: | |
mergespec: | |
name: Validate spec file | |
runs-on: ubuntu-22.04 | |
defaults: | |
run: | |
working-directory: . | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version-file: go.mod | |
cache-dependency-path: go.sum | |
- run: make install-swag | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20.17.0' | |
- run: npm install --location=global @openapitools/openapi-generator-cli | |
- run: make spec | |
- run: make validate-spec |