Extract reconcile (#85)

This commit is contained in:
Andras Schmelczer 2025-07-13 11:06:42 +01:00 committed by GitHub
parent 75b020146a
commit bb0e44f06f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
141 changed files with 294 additions and 36720 deletions

View file

@ -25,29 +25,22 @@ jobs:
- name: Setup rust
run: |
cargo install sqlx-cli wasm-pack cargo-machete
cd backend
cargo install sqlx-cli cargo-machete
cd sync-server
sqlx database create --database-url sqlite://db.sqlite3
sqlx migrate run --source sync_server/src/app_state/database/migrations --database-url sqlite://db.sqlite3
sqlx migrate run --source src/app_state/database/migrations --database-url sqlite://db.sqlite3
- name: Build wasm
- name: Lint sync-server
run: |
cd backend
wasm-pack build --target web sync_lib
- name: Lint backend
run: |
cd backend
cd sync-server
cargo clippy --all-targets --all-features
cargo fmt --all -- --check
cargo machete
- name: Test backend
- name: Test sync-server
run: |
cd backend
cargo test --verbose -- --include-ignored
cd sync_lib
wasm-pack test --node
cd sync-server
cargo test --verbose
- name: Lint frontend
run: |
@ -64,4 +57,5 @@ jobs:
- name: Test frontend
run: |
cd frontend
npm ci
npm run test

View file

@ -25,20 +25,15 @@ jobs:
- name: Setup rust
run: |
cargo install sqlx-cli wasm-pack
cd backend
cargo install sqlx-cli
cd sync-server
sqlx database create --database-url sqlite://db.sqlite3
sqlx migrate run --source sync_server/src/app_state/database/migrations --database-url sqlite://db.sqlite3
- name: Build wasm
run: |
cd backend
wasm-pack build --target web sync_lib
sqlx migrate run --source src/app_state/database/migrations --database-url sqlite://db.sqlite3
- name: E2E tests
run: |
cd backend
cargo run -p sync_server config-e2e.yml --color never &
cd sync-server
cargo run config-e2e.yml --color never &
cd ..
scripts/update-api-types.sh

View file

@ -66,7 +66,7 @@ jobs:
id: build-and-push
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
with:
context: backend
context: sync-server
push: ${{ github.ref_type == 'tag' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

View file

@ -20,12 +20,6 @@ jobs:
node-version: "22.x"
check-latest: true
- name: Build wasm
run: |
cd backend
cargo install wasm-pack
wasm-pack build --target web sync_lib
- name: Build plugin
run: |
cd frontend