Use sqlc-gen-typescript-native for TypeScript support #1977
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: typescript | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - 'docs/**' | |
| pull_request: | |
| paths-ignore: | |
| - 'docs/**' | |
| jobs: | |
| build: | |
| name: test | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 25 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-go@v7 | |
| with: | |
| go-version: '1.26.5' | |
| - name: Build sqlc from this checkout | |
| run: | | |
| go build -o "$RUNNER_TEMP/sqlc" ./cmd/sqlc | |
| echo "SQLC=$RUNNER_TEMP/sqlc" >> "$GITHUB_ENV" | |
| - uses: actions/checkout@v7 | |
| with: | |
| repository: bonakodo/sqlc-gen-typescript-native | |
| path: typescript | |
| # v0.4.0 | |
| ref: 1942c66cebc201e85fbd79fbe162a2ce6b47a666 | |
| persist-credentials: false | |
| - uses: denoland/setup-deno@v2 | |
| with: | |
| deno-version: "v2.9.6" | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version: "26.8.1" | |
| cache: npm | |
| cache-dependency-path: typescript/tests/integration/package-lock.json | |
| - name: Install SQLite shared library | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libsqlite3-0 | |
| sqlite_library=$(dpkg -L libsqlite3-0 | sed -n '/\/libsqlite3\.so\.0$/p') | |
| test -f "$sqlite_library" | |
| echo "DENO_SQLITE_PATH=$sqlite_library" >> "$GITHUB_ENV" | |
| - run: deno task tools | |
| working-directory: typescript | |
| - name: Test generation and driver runtimes | |
| run: deno task integration | |
| working-directory: typescript | |
| - name: Check generated example | |
| run: '"$SQLC" diff' | |
| working-directory: typescript/examples/deno-sqlite |