fix(cli): support --yes flag for unattended dataset import #34508
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: Test exports works in native node ESM and CJS and TypeScript DTS | |
| on: | |
| push: | |
| jobs: | |
| testExports: | |
| timeout-minutes: 15 | |
| runs-on: ubuntu-latest | |
| env: | |
| TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
| TURBO_TEAM: ${{ vars.TURBO_TEAM }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Check if only examples files changed | |
| id: check_examples_only | |
| run: | | |
| if [ "${{ github.event_name }}" = "pull_request" ]; then | |
| # For PRs, check files changed in the PR | |
| CHANGED_FILES=$(git diff --name-only origin/${{ github.base_ref }}...HEAD) | |
| else | |
| # For pushes, check files in the last commit | |
| CHANGED_FILES=$(git diff --name-only HEAD~1) | |
| fi | |
| echo "Changed files:" | |
| echo "$CHANGED_FILES" | |
| # Check if all changed files are in examples/ directory | |
| EXAMPLES_ONLY="true" | |
| while IFS= read -r file; do | |
| if [[ ! "$file" =~ ^examples/ ]]; then | |
| EXAMPLES_ONLY="false" | |
| break | |
| fi | |
| done <<< "$CHANGED_FILES" | |
| echo "examples_only=$EXAMPLES_ONLY" >> $GITHUB_OUTPUT | |
| - name: Skip export tests for examples-only changes | |
| if: steps.check_examples_only.outputs.examples_only == 'true' | |
| run: | | |
| echo "Only examples files changed, skipping export tests" | |
| exit 0 | |
| - uses: ./.github/actions/setup | |
| if: steps.check_examples_only.outputs.examples_only != 'true' | |
| - name: Check export conditions in native node ESM and CJS, and TypeScript DTS | |
| if: steps.check_examples_only.outputs.examples_only != 'true' | |
| run: pnpm test:exports |