[AutoPR healthcareapis] [Hub Generated] Review request for Microsoft.HealthcareApis to add version stable/2023-12-01 #15718
This file contains 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: CI | |
on: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
schema-tests: | |
name: Schema Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '5.0.x' | |
- name: Install NPM modules | |
run: npm ci | |
working-directory: ./tools | |
- name: Lint | |
run: npm run lint | |
working-directory: ./tools | |
- name: Run CI tests | |
run: npm test | |
working-directory: ./tools | |
- name: Deployments Schema tests | |
run: dotnet test DeploymentsSchemaTests/DeploymentsSchemaTests.csproj | |
working-directory: ./tools | |
build-generator: | |
name: Build Generator | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
- name: Install | |
run: npm ci | |
working-directory: ./generator | |
- name: Lint | |
run: npm run lint | |
working-directory: ./generator | |
- name: Build | |
run: npm run build | |
working-directory: ./generator | |
automerge: | |
runs-on: ubuntu-latest | |
needs: schema-tests | |
env: | |
PR_PREFIX: sdkAuto/ | |
if: ${{ github.event.pull_request.user.login == 'azure-sdk' }} | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
- name: Install NPM modules | |
run: npm ci | |
working-directory: ./generator | |
- name: Check RP in Autogenlist | |
run: | | |
check_result=''; | |
exec=$(npm run find-basepath ${{ github.head_ref }} $PR_PREFIX); | |
while read line; | |
do | |
# overriding check_result until the last line is read, last line contains | |
# the result to whether or not the basepath was found in autogenlist. | |
check_result=$line; | |
echo $check_result; | |
done <<< "$exec"; | |
if [ $check_result == 'false' ] ; then | |
echo "Base path: '$basePath' not onboarded for autogeneration" 1>&2 | |
exit 1 | |
fi | |
working-directory: ./generator |