Skip to content

Commit 7dc4be1

Browse files
committed
Merge branch 'main' into update-core-tests
2 parents 55908f1 + 9ef2241 commit 7dc4be1

File tree

268 files changed

+13496
-1741
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

268 files changed

+13496
-1741
lines changed

.github/workflows/demos.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Install Melos
2424
run: flutter pub global activate melos
2525
- name: Install dependencies
26-
run: melos bootstrap
26+
run: melos prepare
2727
- name: Check formatting
2828
run: melos format:check:demos
2929
- name: Lint
@@ -43,11 +43,8 @@ jobs:
4343
- name: Install melos
4444
run: flutter pub global activate melos
4545
- name: Install dependencies
46-
run: melos bootstrap
47-
- name: Download powersync binary
48-
run: |
49-
github="https://github.com/powersync-ja/powersync-sqlite-core/releases/download/v0.1.6"
50-
51-
curl "${github}/libpowersync_x64.so" -o packages/powersync/libpowersync.so --create-dirs -L -f
52-
- name: Run tests
46+
run: melos prepare
47+
- name: Run flutter tests
5348
run: melos test
49+
- name: Run dart tests
50+
run: melos test:web

.github/workflows/packages.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Install Melos
2424
run: flutter pub global activate melos
2525
- name: Install dependencies
26-
run: melos bootstrap
26+
run: melos prepare
2727
- name: Check formatting
2828
run: melos format:check:packages
2929
- name: Lint
@@ -33,7 +33,7 @@ jobs:
3333
- name: Check publish score
3434
run: |
3535
flutter pub global activate pana
36-
./.github/workflows/scripts/run-pana.sh
36+
melos analyze:packages:pana --no-select
3737
3838
test:
3939
runs-on: ubuntu-latest
@@ -46,12 +46,9 @@ jobs:
4646
channel: "stable"
4747
- name: Install melos
4848
run: flutter pub global activate melos
49-
- name: Install dependencies
50-
run: melos bootstrap
51-
- name: Download powersync binary
52-
run: |
53-
github="https://github.com/powersync-ja/powersync-sqlite-core/releases/download/v0.1.6"
54-
55-
curl "${github}/libpowersync_x64.so" -o packages/powersync/libpowersync.so --create-dirs -L -f
56-
- name: Run tests
49+
- name: Install dependencies and prepare project
50+
run: melos prepare
51+
- name: Run flutter tests
5752
run: melos test
53+
- name: Run dart tests
54+
run: melos test:web

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
permissions:
88
contents: write
99
id-token: write # Required for authentication using OIDC
10-
runs-on: [ ubuntu-latest ]
10+
runs-on: [ubuntu-latest]
1111
steps:
1212
- uses: actions/checkout@v3
1313
- uses: subosito/flutter-action@v2

.github/workflows/release.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# This triggers whenever a tagged release is pushed
2+
name: Compile Assets and Create Draft Release
3+
4+
on:
5+
push:
6+
tags:
7+
# Trigger on tags beginning with 'v'
8+
# Note that `melos version ...` adds the package name as a suffix
9+
# This action is not compatible with tags such as `powersync-v1.1.1`
10+
# marvinpinto/action-automatic-releases struggles to generate changelogs
11+
# Be sure to manually tag the commit to trigger this action
12+
- "powersync-v[0-9]+.[0-9]+.[0-9]+"
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
permissions:
18+
contents: write
19+
20+
steps:
21+
- name: Checkout Repository
22+
uses: actions/checkout@v4
23+
24+
- name: Install Flutter
25+
uses: subosito/flutter-action@v2
26+
with:
27+
flutter-version: "3.x"
28+
channel: "stable"
29+
30+
- name: Install Melos
31+
run: flutter pub global activate melos
32+
33+
- name: Install Dependencies and Compile Assets
34+
run: melos prepare
35+
36+
- name: Create Draft Release
37+
env:
38+
GH_TOKEN: ${{ github.token }}
39+
GH_REPO: ${{ github.repository }}
40+
run: |
41+
tag="${{ github.ref_name }}"
42+
body="Release $tag"
43+
gh release create --draft "$tag" --title "$tag" --notes "$body" --generate-notes --prerelease
44+
gh release upload "${{ github.ref_name }}" packages/powersync/assets/powersync_db.worker.js

.github/workflows/scripts/run-pana.sh

Lines changed: 0 additions & 25 deletions
This file was deleted.

.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,23 @@
44
.DS_Store
55
pubspec_overrides.yaml
66
.idea
7+
.vscode
78
*.iml
89
.flutter-plugins-dependencies
910
.flutter-plugins
11+
build
12+
13+
# Shared assets
14+
assets/*
15+
# exception to the rule
16+
!assets/.gitkeep
17+
18+
# Web assets
19+
powersync_db.worker.js
20+
powersync_db.worker.js*
21+
sqlite3.wasm
22+
23+
#Core binaries
24+
*.dylib
25+
*.dll
26+
*.so

0 commit comments

Comments
 (0)