Skip to content

Commit ac19539

Browse files
committed
Add new latest deps workflow.
1 parent e3c5e81 commit ac19539

File tree

1 file changed

+33
-9
lines changed

1 file changed

+33
-9
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,23 @@ jobs:
4040
args: --all-targets --all-features
4141
token: ${{ secrets.GITHUB_TOKEN }}
4242

43+
test-latest-deps:
44+
runs-on: ubuntu-latest
45+
name: test (latest deps) / ubuntu / ${{ matrix.toolchain }}
46+
strategy:
47+
matrix:
48+
toolchain: [stable, nightly, beta]
49+
steps:
50+
- uses: actions/checkout@v4
51+
- name: Install ${{ matrix.toolchain }}
52+
uses: dtolnay/rust-toolchain@21dc36fb71dd22e3317045c0c31a3f4249868b17
53+
with:
54+
toolchain: ${{ matrix.toolchain }}
55+
- name: cargo update
56+
run: cargo update
57+
- name: cargo test --locked
58+
run: cargo test --locked --all-features
59+
4360
test:
4461
runs-on: ubuntu-latest
4562
name: test / ubuntu / ${{ matrix.toolchain }}
@@ -52,9 +69,6 @@ jobs:
5269
uses: dtolnay/rust-toolchain@21dc36fb71dd22e3317045c0c31a3f4249868b17
5370
with:
5471
toolchain: ${{ matrix.toolchain }}
55-
- name: cargo generate-lockfile
56-
if: hashFiles('Cargo.lock') == ''
57-
run: cargo generate-lockfile
5872
- name: cargo test --locked
5973
run: cargo test --locked --all-features
6074

@@ -86,9 +100,6 @@ jobs:
86100
uses: dtolnay/rust-toolchain@21dc36fb71dd22e3317045c0c31a3f4249868b17
87101
with:
88102
toolchain: ${{ matrix.toolchain }}
89-
- name: cargo generate-lockfile
90-
if: hashFiles('Cargo.lock') == ''
91-
run: cargo generate-lockfile
92103
- name: cargo test --locked
93104
run: cargo test --locked --no-default-features
94105

@@ -104,12 +115,25 @@ jobs:
104115
uses: dtolnay/rust-toolchain@21dc36fb71dd22e3317045c0c31a3f4249868b17
105116
with:
106117
toolchain: ${{ matrix.toolchain }}
107-
- name: cargo generate-lockfile
108-
if: hashFiles('Cargo.lock') == ''
109-
run: cargo generate-lockfile
110118
- name: run_integration_tests.sh
111119
run: /bin/bash ./run_integration_tests.sh
112120

121+
integration-test-latest-deps:
122+
runs-on: ubuntu-latest
123+
name: integration-test (latest deps) / ubuntu / ${{ matrix.toolchain }}
124+
strategy:
125+
matrix:
126+
toolchain: [stable, nightly, beta]
127+
steps:
128+
- uses: actions/checkout@v4
129+
- name: Install ${{ matrix.toolchain }}
130+
uses: dtolnay/rust-toolchain@21dc36fb71dd22e3317045c0c31a3f4249868b17
131+
with:
132+
toolchain: ${{ matrix.toolchain }}
133+
- name: cargo update
134+
run: cargo update
135+
- name: run_integration_tests.sh
136+
run: /bin/bash ./run_integration_tests.sh
113137
doc:
114138
runs-on: ubuntu-latest
115139
name: doc / nightly

0 commit comments

Comments
 (0)