microsoft/typespec

Public

mirrored from https://github.com/microsoft/typespecAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
copilot/fix-emit-additional-properties

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.github/workflows/ci.yml

40lines · modecode

1name: CI
2
3on:
4 pull_request:
5 branches:
6 - main
7 - release/*
8 paths-ignore:
9 - "website/**"
10concurrency:
11 group: ${{ github.workflow }}-${{ github.ref }}
12 cancel-in-progress: true
13
14jobs:
15 preview:
16 runs-on: ubuntu-latest
17
18 steps:
19 - uses: actions/checkout@v4
20 with:
21 fetch-depth: 0 ## Needed for Changesets to find `main` branch
22
23 - uses: actions/setup-dotnet@v5
24 name: Setup .NET
25 with:
26 # Automatically read .NET SDK version from global.json to stay in sync
27 global-json-file: packages/http-client-csharp/global.json
28
29 - uses: ./.github/actions/setup
30
31 - name: Install dependencies
32 run: npx tsx eng/tsp-core/tpm/cli.ts install --since origin/main
33
34 - name: Build
35 run: npx tsx eng/tsp-core/tpm/cli.ts build --since origin/main
36
37 - name: Bump version to prerelease targets
38 run: pnpm chronus version --prerelease "{nextVersion}-pr.${{ github.event.pull_request.number }}.${{ github.run_number }}"
39
40 - run: pnpm tsx eng/tsp-core/pkg-pr-new.ts
41