feat: add validation for V2 @external directive #1909
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: Shared CI | |
on: | |
pull_request: | |
paths: | |
- ".github/workflows/shared-ci.yaml" | |
- "composition/**/*" | |
- "connect/**/*" | |
- "shared/**/*" | |
concurrency: | |
group: ${{github.workflow}}-${{github.head_ref}} | |
cancel-in-progress: true | |
env: | |
CI: true | |
DO_NOT_TRACK: '1' | |
jobs: | |
build_test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/node | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Generate code | |
run: pnpm buf generate --template buf.ts.gen.yaml | |
- name: Check if git is not dirty after generating files | |
run: git diff --no-ext-diff --exit-code | |
- name: Build | |
run: pnpm run --filter ./connect --filter ./shared --filter ./connect --filter ./composition build | |
- name: Test | |
run: pnpm run --filter ./shared test |