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
36 changes: 34 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,42 @@ env:

jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- 1.85.0 # MSRV
- stable
steps:
- uses: actions/checkout@v6
- name: Checkout
uses: actions/checkout@v6
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
cache: true
- name: Check features
run: |
cargo check --no-default-features
cargo check --no-default-features --features wallet
- name: Build
run: cargo build
- name: Test
run: cargo test
run: cargo test --no-fail-fast

lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
cache: true
- name: Rustfmt
run: cargo fmt --all --check
- name: Lint
run: cargo clippy --all-targets --all-features -- -D warnings
4 changes: 2 additions & 2 deletions src/async_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ impl Store {
Ok(store)
}

/// Migrate.
pub(crate) async fn migrate(&self) -> Result<(), Error> {
/// Runs pending migrations against the database.
pub async fn migrate(&self) -> Result<(), Error> {
Ok(sqlx::migrate!().run(&self.pool).await?)
}
}
Expand Down