Skip to content

Commit

Permalink
wip: ci workflow gating on ts-sdk changes (#4152)
Browse files Browse the repository at this point in the history
* ci workflow gating on ts-sdk changes

* test this; expect not to run, but other CI failure

* expect to trigger

* update CI

* expect to not trigger

* revert ruby change, working as expected
  • Loading branch information
RohinBhargava authored Jul 30, 2024
1 parent 759da28 commit 03b84d2
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,23 @@ jobs:
cli_path="$(yarn workspace @fern-api/cli bin fern:dev)"
./scripts/live-test.sh "$cli_path" "$FERN_ORG_TOKEN_DEV"
changes:
runs-on: ubuntu-latest
outputs:
typescript: ${{ steps.filter.outputs.typescript }}
steps:
- uses: actions/checkout@v2
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
typescript:
- 'generators/typescript/sdk/**'
node-version-tests:
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.typescript == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
Expand All @@ -198,6 +213,8 @@ jobs:

cloudflare-startup-tests:
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.typescript == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
Expand All @@ -210,6 +227,8 @@ jobs:

browser-startup-tests:
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.typescript == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
Expand All @@ -218,4 +237,4 @@ jobs:
run: ./scripts/browser-startup-test.sh

- name: Ensure no changes to git-tracked files
run: git --no-pager diff --exit-code
run: git --no-pager diff --exit-code

0 comments on commit 03b84d2

Please sign in to comment.