Skip to content

Commit 6f8982a

Browse files
committed
Workflow test 8
1 parent 9e6980a commit 6f8982a

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

.github/workflows/deploy-sync-streams.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,12 @@ jobs:
2424
with:
2525
node-version-file: node/.nvmrc
2626

27-
- name: Install PowerSync CLI
28-
# todo: replace with npm install powersync
29-
run: npm install ./build-bundle
30-
3127
- name: Deploy sync config
3228
env:
3329
PS_ADMIN_TOKEN: ${{ secrets.POWERSYNC_AUTH_TOKEN }}
3430
INSTANCE_ID: ${{ secrets.POWERSYNC_INSTANCE_ID }}
3531
PROJECT_ID: ${{ secrets.POWERSYNC_PROJECT_ID }}
3632
ORG_ID: ${{ secrets.POWERSYNC_ORG_ID }}
37-
run: |
38-
npx powersync deploy sync-config --directory=.
33+
# todo: replace with npx powersync deploy sync-config --directory=.
34+
run: node ./build-bundle/bin/run.js deploy sync-config --directory=.
3935

sync_streams.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
streams:
22
owned_lists:
33
query: SELECT * FROM lists WHERE owner_id = auth.user_id()
4-
# list_todos:
5-
# query: SELECT * FROM todos WHERE list_id = subscription.parameter('list_id') AND list_id IN (SELECT id FROM lists WHERE owner_id = auth.user_id())
4+
list_todos:
5+
query: SELECT * FROM todos WHERE list_id = subscription.parameter('list_id') AND list_id IN (SELECT id FROM lists WHERE owner_id = auth.user_id())
66

77
config:
88
# see https://docs.powersync.com/sync/advanced/compatibility

0 commit comments

Comments
 (0)