[typespec-ts] fix platform import issue for customization #344
Workflow file for this run
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: "typespec-ts / CI" | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - release/* | |
| paths: | |
| - "packages/typespec-ts/**" | |
| - ".github/workflows/ci-typescript.yml" | |
| merge_group: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| submodules: recursive | |
| - uses: ./.github/actions/setup | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Build typespec-ts package | |
| run: pnpm turbo run --filter "@azure-tools/typespec-ts..." build | |
| unit-test: | |
| name: Run unit tests | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| submodules: recursive | |
| - uses: ./.github/actions/setup | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Build typespec-ts package | |
| run: pnpm turbo run --filter "@azure-tools/typespec-ts..." build | |
| - name: Run unit tests | |
| working-directory: packages/typespec-ts | |
| run: pnpm unit-test && pnpm test-next | |
| e2e-test: | |
| name: Run end-to-end Spector tests | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| submodules: recursive | |
| - uses: ./.github/actions/setup | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Build typespec-ts package | |
| run: pnpm turbo run --filter "@azure-tools/typespec-ts..." build | |
| - name: Copy TypeSpec files | |
| working-directory: packages/typespec-ts | |
| run: pnpm copy:typespec | |
| - name: Run Spector tests | |
| working-directory: packages/typespec-ts | |
| run: pnpm spector-test | |
| - name: Check git tree is clean | |
| working-directory: packages/typespec-ts | |
| run: pnpm check:tree |