feat(typescript): let the caller omit an optional request body #1269
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: CI - Dynamic Snippets | |
| on: | |
| pull_request: | |
| paths: | |
| - generators/typescript-v2/dynamic-snippets/** | |
| - generators/python-v2/dynamic-snippets/** | |
| - generators/csharp/dynamic-snippets/** | |
| - generators/go-v2/dynamic-snippets/** | |
| - generators/ruby-v2/dynamic-snippets/** | |
| - generators/php/dynamic-snippets/** | |
| - generators/swift/dynamic-snippets/** | |
| - generators/java-v2/dynamic-snippets/** | |
| permissions: | |
| contents: read | |
| env: | |
| DO_NOT_TRACK: "1" | |
| TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
| TURBO_TEAM: "buildwithfern" | |
| TURBO_NO_UPDATE_NOTIFIER: "1" | |
| TURBO_DAEMON: "false" | |
| jobs: | |
| test-typescript: | |
| runs-on: ubuntu-latest | |
| if: contains(github.event.pull_request.changed_files, 'generators/typescript-v2/dynamic-snippets/') | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v6 | |
| - name: 📥 Install | |
| uses: ./.github/actions/install | |
| - name: Cache Fern bin dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.fern/bin | |
| key: ${{ runner.os }}-fern-bin-${{ hashFiles('packages/cli/workspace/lazy-fern-workspace/src/protobuf/BufDownloader.ts', 'packages/cli/workspace/lazy-fern-workspace/src/protobuf/ProtocGenOpenAPIDownloader.ts') }} | |
| restore-keys: | | |
| ${{ runner.os }}-fern-bin- | |
| - name: Build CLI for install-dependencies | |
| run: pnpm turbo run dist:cli:dev --filter=@fern-api/cli | |
| - name: Install protobuf dependencies (buf + protoc-gen-openapi) | |
| run: | | |
| FERN_NO_VERSION_REDIRECTION=true node packages/cli/cli/dist/dev/cli.cjs install-dependencies | |
| echo "$HOME/.fern/bin" >> $GITHUB_PATH | |
| - name: 🧪 Build | |
| run: pnpm turbo run compile --filter=@fern-api/typescript-dynamic-snippets | |
| - name: 🧪 Test | |
| run: pnpm turbo run test --filter=@fern-api/typescript-dynamic-snippets | |
| test-python: | |
| runs-on: ubuntu-latest | |
| if: contains(github.event.pull_request.changed_files, 'generators/python-v2/dynamic-snippets/') | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v6 | |
| - name: 📥 Install | |
| uses: ./.github/actions/install | |
| - name: Cache Fern bin dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.fern/bin | |
| key: ${{ runner.os }}-fern-bin-${{ hashFiles('packages/cli/workspace/lazy-fern-workspace/src/protobuf/BufDownloader.ts', 'packages/cli/workspace/lazy-fern-workspace/src/protobuf/ProtocGenOpenAPIDownloader.ts') }} | |
| restore-keys: | | |
| ${{ runner.os }}-fern-bin- | |
| - name: Build CLI for install-dependencies | |
| run: pnpm turbo run dist:cli:dev --filter=@fern-api/cli | |
| - name: Install protobuf dependencies (buf + protoc-gen-openapi) | |
| run: | | |
| FERN_NO_VERSION_REDIRECTION=true node packages/cli/cli/dist/dev/cli.cjs install-dependencies | |
| echo "$HOME/.fern/bin" >> $GITHUB_PATH | |
| - name: 🧪 Build | |
| run: pnpm turbo run compile --filter=@fern-api/python-dynamic-snippets | |
| - name: 🧪 Test | |
| run: pnpm turbo run test --filter=@fern-api/python-dynamic-snippets | |
| test-csharp: | |
| runs-on: ubuntu-latest | |
| if: contains(github.event.pull_request.changed_files, 'generators/csharp/dynamic-snippets/') | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v6 | |
| - name: 📥 Install | |
| uses: ./.github/actions/install | |
| - name: Cache Fern bin dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.fern/bin | |
| key: ${{ runner.os }}-fern-bin-${{ hashFiles('packages/cli/workspace/lazy-fern-workspace/src/protobuf/BufDownloader.ts', 'packages/cli/workspace/lazy-fern-workspace/src/protobuf/ProtocGenOpenAPIDownloader.ts') }} | |
| restore-keys: | | |
| ${{ runner.os }}-fern-bin- | |
| - name: Build CLI for install-dependencies | |
| run: pnpm turbo run dist:cli:dev --filter=@fern-api/cli | |
| - name: Install protobuf dependencies (buf + protoc-gen-openapi) | |
| run: | | |
| FERN_NO_VERSION_REDIRECTION=true node packages/cli/cli/dist/dev/cli.cjs install-dependencies | |
| echo "$HOME/.fern/bin" >> $GITHUB_PATH | |
| - name: 🧪 Build | |
| run: pnpm turbo run compile --filter=@fern-api/csharp-dynamic-snippets | |
| - name: 🧪 Test | |
| run: pnpm turbo run test --filter=@fern-api/csharp-dynamic-snippets | |
| test-go: | |
| runs-on: ubuntu-latest | |
| if: contains(github.event.pull_request.changed_files, 'generators/go-v2/dynamic-snippets/') | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v6 | |
| - name: 📥 Install | |
| uses: ./.github/actions/install | |
| - name: Cache Fern bin dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.fern/bin | |
| key: ${{ runner.os }}-fern-bin-${{ hashFiles('packages/cli/workspace/lazy-fern-workspace/src/protobuf/BufDownloader.ts', 'packages/cli/workspace/lazy-fern-workspace/src/protobuf/ProtocGenOpenAPIDownloader.ts') }} | |
| restore-keys: | | |
| ${{ runner.os }}-fern-bin- | |
| - name: Build CLI for install-dependencies | |
| run: pnpm turbo run dist:cli:dev --filter=@fern-api/cli | |
| - name: Install protobuf dependencies (buf + protoc-gen-openapi) | |
| run: | | |
| FERN_NO_VERSION_REDIRECTION=true node packages/cli/cli/dist/dev/cli.cjs install-dependencies | |
| echo "$HOME/.fern/bin" >> $GITHUB_PATH | |
| - name: 🧪 Build | |
| run: pnpm turbo run compile --filter=@fern-api/go-dynamic-snippets | |
| - name: 🧪 Test | |
| run: pnpm turbo run test --filter=@fern-api/go-dynamic-snippets | |
| test-ruby: | |
| runs-on: ubuntu-latest | |
| if: contains(github.event.pull_request.changed_files, 'generators/ruby-v2/dynamic-snippets/') | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v6 | |
| - name: 📥 Install | |
| uses: ./.github/actions/install | |
| - name: Cache Fern bin dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.fern/bin | |
| key: ${{ runner.os }}-fern-bin-${{ hashFiles('packages/cli/workspace/lazy-fern-workspace/src/protobuf/BufDownloader.ts', 'packages/cli/workspace/lazy-fern-workspace/src/protobuf/ProtocGenOpenAPIDownloader.ts') }} | |
| restore-keys: | | |
| ${{ runner.os }}-fern-bin- | |
| - name: Build CLI for install-dependencies | |
| run: pnpm turbo run dist:cli:dev --filter=@fern-api/cli | |
| - name: Install protobuf dependencies (buf + protoc-gen-openapi) | |
| run: | | |
| FERN_NO_VERSION_REDIRECTION=true node packages/cli/cli/dist/dev/cli.cjs install-dependencies | |
| echo "$HOME/.fern/bin" >> $GITHUB_PATH | |
| - name: 🧪 Build | |
| run: pnpm turbo run compile --filter=@fern-api/ruby-dynamic-snippets | |
| - name: 🧪 Test | |
| run: pnpm turbo run test --filter=@fern-api/ruby-dynamic-snippets | |
| test-php: | |
| runs-on: ubuntu-latest | |
| if: contains(github.event.pull_request.changed_files, 'generators/php/dynamic-snippets/') | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v6 | |
| - name: 📥 Install | |
| uses: ./.github/actions/install | |
| - name: Cache Fern bin dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.fern/bin | |
| key: ${{ runner.os }}-fern-bin-${{ hashFiles('packages/cli/workspace/lazy-fern-workspace/src/protobuf/BufDownloader.ts', 'packages/cli/workspace/lazy-fern-workspace/src/protobuf/ProtocGenOpenAPIDownloader.ts') }} | |
| restore-keys: | | |
| ${{ runner.os }}-fern-bin- | |
| - name: Build CLI for install-dependencies | |
| run: pnpm turbo run dist:cli:dev --filter=@fern-api/cli | |
| - name: Install protobuf dependencies (buf + protoc-gen-openapi) | |
| run: | | |
| FERN_NO_VERSION_REDIRECTION=true node packages/cli/cli/dist/dev/cli.cjs install-dependencies | |
| echo "$HOME/.fern/bin" >> $GITHUB_PATH | |
| - name: 🧪 Build | |
| run: pnpm turbo run compile --filter=@fern-api/php-dynamic-snippets | |
| - name: 🧪 Test | |
| run: pnpm turbo run test --filter=@fern-api/php-dynamic-snippets | |
| test-swift: | |
| runs-on: ubuntu-latest | |
| if: contains(github.event.pull_request.changed_files, 'generators/swift/dynamic-snippets/') | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v6 | |
| - name: 📥 Install | |
| uses: ./.github/actions/install | |
| - name: Cache Fern bin dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.fern/bin | |
| key: ${{ runner.os }}-fern-bin-${{ hashFiles('packages/cli/workspace/lazy-fern-workspace/src/protobuf/BufDownloader.ts', 'packages/cli/workspace/lazy-fern-workspace/src/protobuf/ProtocGenOpenAPIDownloader.ts') }} | |
| restore-keys: | | |
| ${{ runner.os }}-fern-bin- | |
| - name: Build CLI for install-dependencies | |
| run: pnpm turbo run dist:cli:dev --filter=@fern-api/cli | |
| - name: Install protobuf dependencies (buf + protoc-gen-openapi) | |
| run: | | |
| FERN_NO_VERSION_REDIRECTION=true node packages/cli/cli/dist/dev/cli.cjs install-dependencies | |
| echo "$HOME/.fern/bin" >> $GITHUB_PATH | |
| - name: 🧪 Build | |
| run: pnpm turbo run compile --filter=@fern-api/swift-dynamic-snippets | |
| - name: 🧪 Test | |
| run: pnpm turbo run test --filter=@fern-api/swift-dynamic-snippets | |
| test-java: | |
| runs-on: ubuntu-latest | |
| if: contains(github.event.pull_request.changed_files, 'generators/java-v2/dynamic-snippets/') | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v6 | |
| - name: 📥 Install | |
| uses: ./.github/actions/install | |
| - name: Cache Fern bin dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.fern/bin | |
| key: ${{ runner.os }}-fern-bin-${{ hashFiles('packages/cli/workspace/lazy-fern-workspace/src/protobuf/BufDownloader.ts', 'packages/cli/workspace/lazy-fern-workspace/src/protobuf/ProtocGenOpenAPIDownloader.ts') }} | |
| restore-keys: | | |
| ${{ runner.os }}-fern-bin- | |
| - name: Build CLI for install-dependencies | |
| run: pnpm turbo run dist:cli:dev --filter=@fern-api/cli | |
| - name: Install protobuf dependencies (buf + protoc-gen-openapi) | |
| run: | | |
| FERN_NO_VERSION_REDIRECTION=true node packages/cli/cli/dist/dev/cli.cjs install-dependencies | |
| echo "$HOME/.fern/bin" >> $GITHUB_PATH | |
| - name: 🧪 Build | |
| run: pnpm turbo run compile --filter=@fern-api/java-dynamic-snippets | |
| - name: 🧪 Test | |
| run: pnpm turbo run test --filter=@fern-api/java-dynamic-snippets |