Skip to content

Commit

Permalink
Merge branch 'main' into chore/update-description-of-insert-only
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicGBauer committed Dec 23, 2024
2 parents f1f6632 + ba563b0 commit 906ae75
Show file tree
Hide file tree
Showing 468 changed files with 17,465 additions and 968 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Demos checks

concurrency:
group: demos-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

on:
push:
Expand Down Expand Up @@ -30,21 +29,3 @@ jobs:
run: |
./.github/workflows/scripts/copy-config.sh
melos analyze:demos
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: "3.x"
channel: "stable"
- name: Install melos
run: flutter pub global activate melos
- name: Install dependencies
run: melos prepare
- name: Run flutter tests
run: melos test
- name: Run dart tests
run: melos test:web
18 changes: 16 additions & 2 deletions .github/workflows/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Packages check

concurrency:
group: packages-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

on:
push:
Expand Down Expand Up @@ -30,7 +29,22 @@ jobs:
run: melos analyze:packages
- name: Publish dry-run
run: melos publish --dry-run --yes
- name: Check publish score

pana:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: "3.x"
channel: "stable"

- name: Install Melos
run: flutter pub global activate melos
- name: Install dependencies
run: melos prepare
- name: Check pana score
run: |
flutter pub global activate pana
melos analyze:packages:pana --no-select
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
- "powersync-v[0-9]+.[0-9]+.[0-9]+"
- "powersync_attachments_helper-v[0-9]+.[0-9]+.[0-9]+*"
- "powersync_flutter_libs-v[0-9]+.[0-9]+.[0-9]+*"
- "powersync_core-v[0-9]+.[0-9]+.[0-9]+*"
- "powersync_sqlcipher-v[0-9]+.[0-9]+.[0-9]+*"
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -35,7 +37,7 @@ jobs:
env:
GITHUBREF: ${{ github.ref }}
run: |
PACKAGE_NAME=$(sed -E 's/refs\/tags\/([a-z0-9_]+)-v([0-9]+\.[0-9]+\.[0-9]+)/\1/' <<< $GITHUBREF) && \
PACKAGE_NAME=$(sed -E 's/refs\/tags\/([a-z0-9_]+)-v([0-9]+\.[0-9]+\.[0-9]+(\+[0-9]+)?)/\1/' <<< $GITHUBREF) && \
echo "PACKAGE_NAME=$PACKAGE_NAME" >> $GITHUB_ENV
echo "Package name: $PACKAGE_NAME"
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Compile Assets and Create Draft Release
on:
push:
tags:
- "powersync-v[0-9]+.[0-9]+.[0-9]+"
- 'powersync-v[0-9]+.[0-9]+.[0-9]+'

jobs:
build:
Expand All @@ -19,8 +19,8 @@ jobs:
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: "3.x"
channel: "stable"
flutter-version: '3.x'
channel: 'stable'

- name: Install Melos
run: flutter pub global activate melos
Expand All @@ -34,6 +34,9 @@ jobs:
GH_REPO: ${{ github.repository }}
run: |
tag="${{ github.ref_name }}"
body="Release $tag"
gh release create --draft "$tag" --title "$tag" --notes "$body" --generate-notes
gh release upload "${{ github.ref_name }}" packages/powersync/assets/powersync_db.worker.js
version="${tag#powersync-v}"
changes=$(awk "/## $version/{flag=1;next}/##/{flag=0}flag" packages/powersync/CHANGELOG.md)
body="Release $tag
$changes"
gh release create "$tag" --title "$tag" --notes "$body"
gh release upload "${{ github.ref_name }}" packages/powersync/assets/powersync_db.worker.js packages/powersync/assets/powersync_sync.worker.js
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ assets/*
powersync_db.worker.js
powersync_db.worker.js*
sqlite3.wasm
powersync_sync.worker.js
powersync_sync.worker.js*

#Core binaries
*.dylib
Expand Down
Loading

0 comments on commit 906ae75

Please sign in to comment.