Skip to content

Commit

Permalink
issues-383 sea-query-rusqlite add to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ikrivosheev committed Aug 20, 2022
1 parent 113379f commit 0bb6603
Showing 1 changed file with 67 additions and 2 deletions.
69 changes: 67 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ jobs:
--all-features
--workspace
binder-linter:
name: Linter `sea-query-binder`
runs-on: ubuntu-latest
Expand Down Expand Up @@ -85,6 +84,38 @@ jobs:
--
-D warnings
rusqlite-linter:
name: Linter `sea-query-rusqlite`
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: clippy,rustfmt
override: true

- uses: actions-rs/cargo@v1
name: Run rustfmt on `sea-query-rusqlite`
with:
command: fmt
args: >
--manifest-path sea-query-rusqlite/Cargo.toml
--all
--
--check
- uses: actions-rs/cargo@v1
name: Run clippy on `sea-query-rusqlite`
with:
command: clippy
args: >
--manifest-path sea-query-rusqlite/Cargo.toml
--all-features
--workspace
build:
name: Build `sea-query`
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -160,6 +191,40 @@ jobs:
--features=runtime-${{ matrix.runtime }}-${{ matrix.tls }}
${{ matrix.features }}
rusqlite-build:
name: Build `sea-query-rusqlite`
runs-on: ubuntu-20.04
needs: ["rusqlite-linter"]
strategy:
fail-fast: false
matrix:
features:
- --all-features
- --features=with-chrono
- --features=with-json
- --features=with-rust_decimal
- --features=with-bigdecimal
- --features=with-uuid
- --features=with-time
- --features=with-ipnetwork
- --features=with-mac_address
steps:
- uses: actions/checkout@v2

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- uses: actions-rs/cargo@v1
with:
command: build
args: >
--manifest-path sea-query-rusqlite/Cargo.toml
--workspace
${{ matrix.features }}
test:
name: Unit Test
runs-on: ubuntu-latest
Expand Down Expand Up @@ -206,7 +271,7 @@ jobs:
sqlite:
name: SQLite
runs-on: ubuntu-latest
needs: ["test", "derive-test"]
needs: ["test", "rusqlite-build"]
strategy:
matrix:
example: [rusqlite, sqlx_sqlite]
Expand Down

0 comments on commit 0bb6603

Please sign in to comment.