Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,26 +86,40 @@ jobs:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-

- name: Run migrations
run: |
cd backend
cargo install sqlx-cli --no-default-features --features postgres,native-tls --locked
sqlx migrate run
env:
DATABASE_URL: postgres://postgres:postgres@localhost:5432/guild_genesis_test

- name: Install dependencies
run: |
cd backend
cargo build --verbose
cargo build
env:
DATABASE_URL: postgres://postgres:postgres@localhost:5432/guild_genesis_test

- name: Run clippy
run: |
cd backend
cargo clippy --all-targets --all-features -- -D warnings
env:
DATABASE_URL: postgres://postgres:postgres@localhost:5432/guild_genesis_test

- name: Run rustfmt
run: |
cd backend
cargo fmt --all -- --check
env:
DATABASE_URL: postgres://postgres:postgres@localhost:5432/guild_genesis_test

- name: Run tests
run: |
cd backend
cargo test --verbose
cargo test
env:
DATABASE_URL: postgres://postgres:postgres@localhost:5432/guild_genesis_test
TEST_DATABASE_URL: postgres://postgres:postgres@localhost:5432/guild_genesis_test
Expand Down Expand Up @@ -202,7 +216,7 @@ jobs:
- name: Run integration tests
run: |
cd backend
cargo test --test integration_tests --verbose
cargo test --test integration_tests
env:
DATABASE_URL: postgres://postgres:postgres@localhost:5432/guild_genesis_test
TEST_DATABASE_URL: postgres://postgres:postgres@localhost:5432/guild_genesis_test
Expand Down
Loading
Loading