feat: Migrate JS-sided locks to DatabaseQueue for transactions and executeBatch commands
#318
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: Lint TypeScript | |
| permissions: | |
| checks: write | |
| contents: read | |
| pull-requests: read | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - ".github/workflows/lint-typescript.yml" | |
| - "config" | |
| - "**/*.ts" | |
| - "**/*.tsx" | |
| - "**/*.js" | |
| - "**/*.jsx" | |
| - "**/*.json" | |
| - "**/*.lockb" | |
| - "**/package.json" | |
| pull_request: | |
| paths: | |
| - ".github/workflows/lint-typescript.yml" | |
| - "config" | |
| - "**/*.ts" | |
| - "**/*.tsx" | |
| - "**/*.js" | |
| - "**/*.jsx" | |
| - "**/*.json" | |
| - "**/*.lockb" | |
| - "**/package.json" | |
| jobs: | |
| tsc: | |
| name: Compile TypeScript (tsc) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: oven-sh/setup-bun@v2 | |
| - uses: reviewdog/action-setup@v1 | |
| - name: Install npm dependencies (bun) | |
| run: bun install | |
| - name: Run TypeScript (tsc) in example | |
| working-directory: example | |
| run: | | |
| bun typecheck | reviewdog -name="tsc" -efm="%f(%l,%c): error TS%n: %m" -reporter="github-pr-review" -filter-mode="nofilter" -fail-level=any -tee | |
| env: | |
| REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Run TypeScript (tsc) in react-native-nitro-sqlite | |
| working-directory: package | |
| run: | | |
| bun typecheck | reviewdog -name="tsc" -efm="%f(%l,%c): error TS%n: %m" -reporter="github-pr-review" -filter-mode="nofilter" -fail-level=any -tee | |
| env: | |
| REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| lint: | |
| name: Lint TypeScript (eslint, prettier) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: oven-sh/setup-bun@v2 | |
| - name: Install npm dependencies (bun) | |
| run: bun install | |
| - name: Run ESLint with auto-fix in example | |
| working-directory: example | |
| run: bun lint | |
| - name: Run ESLint with auto-fix in react-native-nitro-sqlite | |
| working-directory: package | |
| run: bun lint | |
| - name: Verify no files have changed after auto-fix | |
| run: git diff --exit-code HEAD -- . ':(exclude)bun.lockb' |