feat: implement document-reference type #40
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: CI | |
| on: | |
| pull_request: | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| jobs: | |
| check: | |
| name: Build, lint, and other checks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version: 20 | |
| cache: yarn | |
| - run: yarn install --frozen-lockfile | |
| - run: yarn lint | |
| - run: yarn format-check | |
| - run: yarn build | |
| - run: yarn generate-json-schema-local | |
| - run: git --no-pager diff --exit-code | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version: 20 | |
| cache: yarn | |
| - run: yarn install --frozen-lockfile | |
| - run: yarn test:src | |
| integration-python: | |
| name: Integration tests (Python) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version: 20 | |
| cache: yarn | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 21 | |
| - name: Install Poetry | |
| run: pipx install poetry | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10" | |
| cache: poetry | |
| cache-dependency-path: tests/integration/python/poetry.lock | |
| - name: Install Node dependencies | |
| run: yarn install --frozen-lockfile | |
| - name: Install Poetry project | |
| working-directory: tests/integration/python | |
| run: poetry install --no-root | |
| - name: Run integration tests | |
| run: yarn test:integration:python | |
| - name: Upload generated models on failure | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: integration-python-generated | |
| path: tests/integration/python/generated/ | |
| integration-typescript: | |
| name: Integration tests (TypeScript) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version: 20 | |
| cache: yarn | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 21 | |
| - name: Install Node dependencies | |
| run: yarn install --frozen-lockfile | |
| - name: Run integration tests | |
| run: yarn test:integration:typescript | |
| - name: Upload generated types on failure | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: integration-typescript-generated | |
| path: tests/integration/typescript/generated/ | |
| integration-swift: | |
| name: Integration tests (Swift) | |
| # macos-15 ships with Xcode 16, which bundles Swift 6 and the `Testing` | |
| # framework that the test target imports. | |
| runs-on: macos-15 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version: 20 | |
| cache: yarn | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 21 | |
| - name: Install Node dependencies | |
| run: yarn install --frozen-lockfile | |
| - name: Cache SwiftPM dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| tests/integration/swift/.build | |
| tests/integration/swift/.swiftpm | |
| ~/Library/Caches/org.swift.swiftpm | |
| key: ${{ runner.os }}-spm-${{ hashFiles('tests/integration/swift/Package.swift') }} | |
| restore-keys: | | |
| ${{ runner.os }}-spm- | |
| - name: Run integration tests | |
| run: yarn test:integration:swift | |
| - name: Upload generated source on failure | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: integration-swift-generated | |
| path: tests/integration/swift/Sources/TypesyncIntegration/Generated/ |