Skip to content

fix(service-spec): the spec treats any nested anyOf or oneOf as a union type #2922

fix(service-spec): the spec treats any nested anyOf or oneOf as a union type

fix(service-spec): the spec treats any nested anyOf or oneOf as a union type #2922

# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".
name: test-aws-cdk-integration
on:
workflow_dispatch: {}
pull_request: {}
merge_group:
branches:
- main
jobs:
test-with-new-codegen:
runs-on: awscdk-service-spec_ubuntu-latest_32-core
permissions:
contents: read
env:
CI: "1"
NODE_OPTIONS: --max-old-space-size=8196
steps:
- name: Checkout awscdk-service-spec
uses: actions/checkout@v3
with:
path: awscdk-service-spec
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
lfs: true
- name: Build awscdk-service-spec
run: |-
yarn install --frozen-lockfile
yarn compile
working-directory: awscdk-service-spec
- name: Checkout aws/aws-cdk
uses: actions/checkout@v3
with:
path: aws-cdk
repository: aws/aws-cdk
- name: Register drop-in @aws-cdk/aws-service-spec replacement
run: yarn link
working-directory: awscdk-service-spec/packages/@aws-cdk/aws-service-spec
- name: Link drop-in @aws-cdk/aws-service-spec replacement
run: yarn link "@aws-cdk/aws-service-spec"
working-directory: aws-cdk
- name: Register drop-in @aws-cdk/service-spec-types replacement
run: yarn link
working-directory: awscdk-service-spec/packages/@aws-cdk/service-spec-types
- name: Link drop-in @aws-cdk/service-spec-types replacement
run: yarn link "@aws-cdk/service-spec-types"
working-directory: aws-cdk
- name: Setup aws/aws-cdk
run: yarn install
working-directory: aws-cdk
- name: Build aws/aws-cdk
run: npx lerna run build --no-bail --scope aws-cdk-lib --include-dependencies
working-directory: aws-cdk
- name: Install jsii-diff
run: npm install -g jsii-diff
- name: Compare current and candidate spec
run: npx jsii-diff --verbose --keys --ignore-file=awscdk-service-spec/packages/@aws-cdk/aws-service-spec/.jsiidiffignore --error-on=non-experimental npm:aws-cdk-lib@latest aws-cdk/packages/aws-cdk-lib