Regenerate bundle.json if newer than SQL files, fixed #2 #11
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: Bun CI | |
on: | |
push: | |
paths-ignore: | |
- "*.md" | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Bun | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: "1.1.0" | |
- name: Cache Dependencies | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.bun/install/cache | |
~/work/better-sqlite3-migrate/better-sqlite3-migrate/bun.lockb | |
key: ${{ runner.os }}-bun-cache-v5-${{ hashFiles('package.json') }} | |
restore-keys: | | |
${{ runner.os }}-bun-cache-v5- | |
- name: Run tests | |
run: | | |
bun install | |
bun ./sql-bundle.mjs ./test/migrations | |
bun test |