Skip to content

Commit 0ab4eb8

Browse files
committed
Add a minimal version CI test
1 parent b5e9acd commit 0ab4eb8

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
- 0.2.x
78

89
name: CI Tests
910

@@ -143,3 +144,21 @@ jobs:
143144

144145
- name: Check formating
145146
run: cargo +stable fmt --all -- --check
147+
minimal_rust_version:
148+
name: Check Minimal supported rust version (1.65.0)
149+
runs-on: ubuntu-latest
150+
steps:
151+
- uses: actions/checkout@v3
152+
- uses: dtolnay/rust-toolchain@stable
153+
- uses: dtolnay/rust-toolchain@nightly
154+
- uses: taiki-e/install-action@cargo-hack
155+
- uses: taiki-e/install-action@cargo-minimal-versions
156+
- name: Cache cargo registry
157+
uses: actions/cache@v2
158+
with:
159+
path: |
160+
~/.cargo/registry
161+
~/.cargo/git
162+
key: minimal_rust_version-cargo-${{ hashFiles('**/Cargo.toml') }}
163+
- name: Check diesel_derives
164+
run: cargo +stable minimal-versions check -p diesel_async --all-features

0 commit comments

Comments
 (0)