feat: Sync with Seam API via f89f0334247c13e56662b895468915667c3bac39… #5466
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: Check | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - '**' | |
| jobs: | |
| lint: | |
| name: Lint (Node.js v${{ matrix.node }}) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node: | |
| - '22' | |
| - '24' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Setup | |
| uses: ./.github/actions/setup | |
| with: | |
| node_version: ${{ matrix.node }} | |
| - name: Lint | |
| run: npm run lint | |
| build: | |
| name: Build | |
| uses: ./.github/workflows/_build.yml | |
| install: | |
| name: Install (Node.js v${{ matrix.node }} on ${{ matrix.os_name }}) | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 30 | |
| needs: build | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| node: | |
| - '22' | |
| - '24' | |
| include: | |
| - os: ubuntu-latest | |
| os_name: Linux | |
| steps: | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| - name: Download artifact | |
| uses: actions/download-artifact@v6 | |
| with: | |
| name: ${{ needs.build.outputs.artifact_name }} | |
| path: . | |
| - name: Find packages | |
| uses: tj-actions/glob@v22 | |
| id: packages | |
| with: | |
| files: '*.tgz' | |
| - name: Create package.json | |
| uses: DamianReeves/write-file-action@v1.3 | |
| with: | |
| write-mode: overwrite | |
| path: package.json | |
| contents: | | |
| {"type":"module"} | |
| - name: Create index.js | |
| uses: DamianReeves/write-file-action@v1.3 | |
| with: | |
| write-mode: overwrite | |
| path: index.js | |
| contents: | | |
| import '@seamapi/types' | |
| import '@seamapi/types/connect' | |
| import '@seamapi/types/devicedb' | |
| - name: Install | |
| run: npm install --save ${{ steps.packages.outputs.paths }} | |
| - name: Run | |
| run: node index.js | |
| typecheck: | |
| name: Typecheck (Node.js v${{ matrix.node }}) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node: | |
| - '22' | |
| - '24' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Setup | |
| uses: ./.github/actions/setup | |
| with: | |
| node_version: ${{ matrix.node }} | |
| - name: Typecheck | |
| run: npm run typecheck | |
| docs: | |
| name: Docs | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Setup | |
| uses: ./.github/actions/setup | |
| - name: Build docs | |
| run: npm run docs:build | |
| blueprint: | |
| name: Blueprint | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup | |
| uses: ./.github/actions/setup | |
| - name: Generate blueprint | |
| run: npm run blueprint | |
| - name: Seam Connect Blueprint | |
| run: cat ./tmp/connect-blueprint.json |