Skip to content

Commit

Permalink
feat: Client API and Integration test (AppFlowy-IO#7)
Browse files Browse the repository at this point in the history
* feat: change to client from test_server

* feat: change to client from test_server: register_success

* fix: use time in email for indempotency

* added rest of register test case

* feat: added client impl for login

* feat: Client: store logged token

* feat: added password change impl

* feat: remove test api, move to using Client

* chore: remove unneeded code

* chore: add client's integration test

* chore: try fix github workflow

* chore: try fix github workflow

* chore: try fix github actions - 2

* chore: try fix github actions - change rust toolchain

* chore: try fix github actions - remove name field

* chore: ci: fixed missing run key

* chore: ci: fixed missing Checkout

* chore: ci: added env settings for docker-compose

* chore: ci: added env BACKEND_VERSION for docker-compose

* chore: ci: added context . to docker-compose.yml

* chore: ci: added old dockerfiles to archive, default values in docker-compose.yml

* chore: github workflow: build server with env SQLX_OFFLINE true

* chore: remove unneeded deps

* chore: ci: try SQLX_OFFLINE export

* fix: ci: remove unneeded integration test ci, spawn server while cargo test

* fix: lint and github workflow

* fix: lint

* fix: github workflows: use workspaces instead of key

* fix: lint: use as_deref instead
  • Loading branch information
speed2exe authored Aug 10, 2023
1 parent e65b633 commit 58f0cdd
Show file tree
Hide file tree
Showing 18 changed files with 686 additions and 741 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
key: sqlx-${{ env.SQLX_VERSION }}
workspaces: |
AppFlowy-Cloud
- name: Install sqlx-cli
run:
cargo install sqlx-cli
Expand All @@ -50,8 +51,13 @@ jobs:
run: |
cargo sqlx prepare --check -- --bin appflowy_server
- name: Run tests
run: cargo test

run: |
cargo build
cargo run &
sleep 5 # wait some time for server to be ready
cargo test
fmt:
name: Rustfmt
runs-on: ubuntu-latest
Expand All @@ -62,8 +68,8 @@ jobs:
components: rustfmt
- name: Enforce formatting
run: cargo fmt --check


clippy:
name: Clippy
runs-on: ubuntu-latest
Expand Down Expand Up @@ -97,5 +103,3 @@ jobs:
SKIP_DOCKER=true ./build/init_database.sh
- name: Linting
run: cargo clippy -- -D warnings


Loading

0 comments on commit 58f0cdd

Please sign in to comment.