Skip to content

Fix migration tests #67

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
on:
push:
pull_request:
name: "android"
jobs:
build:
name: Building Android
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
on:
push:
pull_request:
name: "ios"
jobs:
build:
name: Building iOS
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
on:
push:
pull_request:
name: "linux"
jobs:
build_x86_64:
name: Building Linux x86_64
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -21,6 +23,7 @@ jobs:

build_aarch64:
name: Building Linux aarch64
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)
runs-on: ubuntu-arm64
steps:
- uses: actions/checkout@v3
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
on:
push:
pull_request:
name: "macos"
jobs:
build_macOS_aarch64:
name: Building macOS aarch64
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -21,6 +23,7 @@ jobs:

build_macOS_x64:
name: Building macOS x64
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)
runs-on: macos-14
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
on:
push:
pull_request:
name: "tests"
jobs:
build:
name: Testing on ${{ matrix.os }}
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/valgrind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ jobs:
build:
name: Testing with Valgrind on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)
strategy:
matrix:
include:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/wasm.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
on:
push:
pull_request:
name: "wasm"
jobs:
build_wasm:
name: Basic WASM build
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
on:
push:
pull_request:
name: "windows"
jobs:
build_windows:
name: Building Windows
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 4 additions & 0 deletions dart/test/utils/migration_fixtures.dart
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,8 @@ END
SELECT CASE
WHEN (NEW.id IS NULL)
THEN RAISE (FAIL, 'id is required')
WHEN (typeof(NEW.id) != 'text')
THEN RAISE (FAIL, 'id should be text')
END;
INSERT INTO "ps_data__lists"
SELECT NEW.id, json_object('description', NEW."description");
Expand Down Expand Up @@ -478,6 +480,8 @@ END
SELECT CASE
WHEN (NEW.id IS NULL)
THEN RAISE (FAIL, 'id is required')
WHEN (typeof(NEW.id) != 'text')
THEN RAISE (FAIL, 'id should be text')
END;
INSERT INTO "ps_data__lists"
SELECT NEW.id, json_object('description', NEW."description");
Expand Down