Bump core from ee0edf5
to 8e16c91
#1473
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: External Integration | |
on: | |
pull_request: | |
types: [opened, synchronize, labeled] | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
azure-rest-api-specs: | |
name: Azure REST API Specs | |
runs-on: ubuntu-latest | |
if: contains(github.event.pull_request.labels.*.name, 'int:azure-specs') || github.event_name == 'workflow_dispatch' | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
ref: ${{ github.event.pull_request.head.sha || github.sha }} | |
- name: Setup Node.js and pnpm | |
uses: ./.github/actions/setup | |
- name: Install dependencies | |
run: pnpm install | |
- name: Build and pack TypeSpec Azure packages | |
run: | | |
pnpm --filter "!@azure-tools/typespec-azure-website" --filter "!@azure-tools/typespec-azure-playground-*" --filter "!@typespec/playground-website" --filter="!./core/" -r build | |
pnpm chronus pack --pack-destination ./tgz-packages | |
# Also pack TypeSpec core packages | |
cd core | |
pnpm chronus pack --pack-destination ../tgz-packages --exclude standalone | |
cd .. | |
echo "Created tgz packages:" | |
ls -la ./tgz-packages/ | |
cd packages/integration-tester | |
npm link | |
- name: Checkout | |
run: tsp-integration azure-specs --stage checkout | |
- name: Patch package.json | |
run: tsp-integration azure-specs --stage patch --stage install --tgz-dir ./tgz-packages | |
- name: Run TypeSpec validation in azure-rest-api-specs | |
run: tsp-integration azure-specs --stage validate | |
- name: Check for git changes | |
if: success() || failure() # Still run this step even if validation fails to ensure as much information as possible | |
run: tsp-integration azure-specs --stage validate:clean |