# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. name: Package Checks on: pull_request permissions: contents: read jobs: test: name: Test Package Paths And Run Type Check runs-on: ${{ github.server_url == 'https://github.com' && 'ubuntu-latest' || vars.ENTERPRISE_LINUX_RUNNER || 'ubuntu-latest' }} steps: - name: Checkout Repo uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # ratchet:actions/checkout@v7 with: # This makes Actions fetch all Git history so run-changed script can diff properly. fetch-depth: 0 persist-credentials: false - name: Set up CI environment uses: ./.github/actions/setup-ci with: install-deps: 'true' - name: Yarn build run: yarn build - name: Type-check packages run: | cp config/ci.config.json config/project.json yarn --cwd packages/ai testsetup yarn type-check - name: Swap in public typings run: yarn release:prepare - name: Check paths run: yarn ts-node scripts/ci-test/check-paths.ts