Skip to content

Commit 40a5124

Browse files
ci.yml,ci/nightly: Move the mismatcher job to ci.yml
We could easily discover mismatches in a normal CI run instead of in a nightly run. * Update the mismatcher job so that it's run on each PR instead of on a nightly. Signed-off-by: Tomás González <[email protected]>
1 parent c35a2bc commit 40a5124

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

.github/workflows/ci.yml

+17
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,20 @@ jobs:
4040
args: -v -r *.md
4141
- name: Fail if there were link errors
4242
run: exit ${{ steps.lc.outputs.exit_code }}
43+
44+
mismatcher:
45+
name: Check for mismatched dependencies (those that have more than one version)
46+
runs-on: ubuntu-latest
47+
steps:
48+
- uses: actions/checkout@v3
49+
with:
50+
ref: "${{ github.event.inputs.rev }}"
51+
- name: Install latest Rust
52+
uses: actions-rust-lang/setup-rust-toolchain@v1
53+
with:
54+
toolchain: stable
55+
rustflags: ""
56+
- name: Execute CI script
57+
uses: ./.github/actions/ci_script
58+
with:
59+
ci-flags: "mismatcher"

.github/workflows/nightly.yml

-17
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,3 @@ jobs:
4242
run: cargo install cargo-audit
4343
- name: Execute cargo audit
4444
run: cargo audit
45-
46-
mismatcher:
47-
name: Check for mismatched dependencies (those that have more than one version)
48-
runs-on: ubuntu-latest
49-
steps:
50-
- uses: actions/checkout@v3
51-
with:
52-
ref: "${{ github.event.inputs.rev }}"
53-
- name: Install Rust MSRV
54-
uses: actions-rust-lang/setup-rust-toolchain@v1
55-
with:
56-
toolchain: stable
57-
rustflags: ""
58-
- name: Execute CI script
59-
uses: ./.github/actions/ci_script
60-
with:
61-
ci-flags: "mismatcher"

0 commit comments

Comments
 (0)