Unverified Commit c3de8a3f authored by Julian Antonielli's avatar Julian Antonielli Committed by GitHub
Browse files

Separate `check-sdk-examples` step and remove it from release checks (#2088)

* Run examples based on flag

* Specify input in ci.yml

* Try to make ci.yml valid

* Add input description

* Put inputs under workflow_call

* Add type boolean
parent adf98a38
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -54,3 +54,5 @@ jobs:
  ci:
    needs: rebuild-docker-build-image
    uses: ./.github/workflows/ci.yml
    with:
      run_sdk_examples: true
+2 −0
Original line number Diff line number Diff line
@@ -38,6 +38,8 @@ jobs:
  ci:
    needs: acquire-base-image
    uses: ./.github/workflows/ci.yml
    with:
      run_sdk_examples: true

  # The PR bot requires a Docker build image, so make it depend on the `acquire-base-image` job.
  pr_bot:
+8 −0
Original line number Diff line number Diff line
@@ -5,8 +5,15 @@
# on if a pull request is being checked, or if the `main` branch is being checked after merge.

name: Test

on:
  workflow_call:
    inputs:
      run_sdk_examples:
        description: Whether to run the SDK example checks or not.
        required: false
        default: false
        type: boolean

env:
  rust_version: 1.62.1
@@ -244,6 +251,7 @@ jobs:
  # This job is split out from the rest since it is not required to pass for merge
  check-sdk-examples:
    name: Check SDK Examples
    if: ${{ inputs.run_sdk_examples == 'true' }}
    needs: generate
    runs-on: ubuntu-latest
    steps:
+2 −0
Original line number Diff line number Diff line
@@ -64,6 +64,8 @@ jobs:
    needs:
    - acquire-base-image
    uses: ./.github/workflows/ci.yml
    with:
      run_sdk_examples: false

  release:
    name: Release