Skip to content

Commit 1f0ea2f

Browse files
committed
Add a minimal version CI test
1 parent 4bbe1c1 commit 1f0ea2f

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

@@ -142,3 +143,21 @@ jobs:
142143

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

0 commit comments

Comments
 (0)