docs: add ideas submission form back (#2122) #3455
This file contains hidden or 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: Check OpenAPI specs | |
| on: | |
| push: | |
| jobs: | |
| build: | |
| name: Build the specification file | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Use Node.js 24 | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: "npm" | |
| cache-dependency-path: "package-lock.json" | |
| - name: Enable corepack | |
| run: | | |
| corepack enable | |
| - name: Install Dependencies | |
| run: npm ci --force | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| - run: | | |
| npm run redoc:test | |
| validate-go-codegen: | |
| name: Validate Go client generation | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Use Node.js 24 | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: "npm" | |
| cache-dependency-path: "package-lock.json" | |
| - name: Enable corepack | |
| run: | | |
| corepack enable | |
| - name: Install Dependencies | |
| run: npm ci --force | |
| - name: Build OpenAPI spec | |
| run: npm run redoc:build:clean:yaml | |
| - name: Setup Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: "1.25" | |
| # Disable caching since go.sum is gitignored and regenerated on each run. | |
| cache: false | |
| - name: Install oapi-codegen as tool | |
| working-directory: codegen/oapi-codegen-go | |
| run: go get -tool github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@latest | |
| - name: Generate Go client | |
| working-directory: codegen/oapi-codegen-go | |
| run: go tool oapi-codegen -config oapi-codegen.yaml ../../static/api/openapi.yaml | |
| - name: Build generated client | |
| working-directory: codegen/oapi-codegen-go | |
| run: | | |
| go mod tidy | |
| go build ./... |