Skip to content

Commit 9ec66fe

Browse files
committed
CI
1 parent ed904a5 commit 9ec66fe

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/rust.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,28 @@ jobs:
4949
- run: cargo fmt --all -- --check
5050
- run: cargo fmt --manifest-path migration/Cargo.toml --all -- --check
5151

52+
examples:
53+
name: Examples
54+
runs-on: ubuntu-latest
55+
strategy:
56+
fail-fast: false
57+
matrix:
58+
path: [
59+
examples/axum_example,
60+
examples/loco_example,
61+
]
62+
steps:
63+
- uses: actions/checkout@v4
64+
- uses: dtolnay/rust-toolchain@master
65+
with:
66+
toolchain: nightly
67+
components: rustfmt
68+
- run: find ${{ matrix.path }} -type f -name 'Cargo.toml' -print0 | xargs -t -0 -I {} cargo fmt --manifest-path {} -- --check
69+
- uses: dtolnay/rust-toolchain@stable
70+
- run: find ${{ matrix.path }} -type f -name 'Cargo.toml' -print0 | xargs -t -0 -I {} cargo update --manifest-path {}
71+
- run: find ${{ matrix.path }} -type f -name 'Cargo.toml' -print0 | xargs -t -0 -I {} cargo build --manifest-path {}
72+
- run: find ${{ matrix.path }} -type f -name 'Cargo.toml' -print0 | xargs -t -0 -I {} cargo test --manifest-path {}
73+
5274
sqlite:
5375
name: SQLite
5476
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)