feat(backend): log what each sync push and pull actually moved (#110) #328
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Backend | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: backend | |
| env: | |
| # Compile-time SQL verification uses the committed .sqlx cache — no DB needed. | |
| SQLX_OFFLINE: "true" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: backend | |
| - name: fmt | |
| run: cargo fmt --check | |
| - name: clippy | |
| run: cargo clippy -- -D warnings | |
| - name: test | |
| run: cargo test | |
| docker: | |
| runs-on: ubuntu-latest | |
| needs: check | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build Docker image | |
| run: docker build backend/ -t pomodoso-backend:ci |