summaryrefslogtreecommitdiffstats
path: root/src/tools/cargo/.github
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/cargo/.github')
-rw-r--r--src/tools/cargo/.github/renovate.json527
-rw-r--r--src/tools/cargo/.github/workflows/main.yml11
2 files changed, 37 insertions, 1 deletions
diff --git a/src/tools/cargo/.github/renovate.json5 b/src/tools/cargo/.github/renovate.json5
index 8ad9952d2..b633fc245 100644
--- a/src/tools/cargo/.github/renovate.json5
+++ b/src/tools/cargo/.github/renovate.json5
@@ -8,7 +8,34 @@
ignorePaths: [
"**/tests/**",
],
+ customManagers: [
+ {
+ customType: 'regex',
+ fileMatch: [
+ '^Cargo.toml$',
+ ],
+ matchStrings: [
+ 'rust-version.*?(?<currentValue>\\d+\\.\\d+(\\.\\d+)?)',
+ ],
+ depNameTemplate: 'latest-msrv',
+ packageNameTemplate: 'rust-lang/rust',
+ datasourceTemplate: 'github-releases',
+ },
+ ],
packageRules: [
+ {
+ commitMessageTopic: 'Latest MSRV',
+ matchManagers: [
+ 'regex',
+ ],
+ matchPackageNames: [
+ 'latest-msrv',
+ ],
+ "extractVersion": "^(?<version>\\d+\\.\\d+)", // Drop the patch version
+ schedule: [
+ '* * * * *',
+ ],
+ },
// Goals:
// - Rollup safe upgrades to reduce CI runner load
// - Have lockfile and manifest in-sync (implicit rules)
diff --git a/src/tools/cargo/.github/workflows/main.yml b/src/tools/cargo/.github/workflows/main.yml
index 2e71f14b8..44dd76e13 100644
--- a/src/tools/cargo/.github/workflows/main.yml
+++ b/src/tools/cargo/.github/workflows/main.yml
@@ -20,6 +20,7 @@ jobs:
needs:
- build_std
- clippy
+ - credential_msrv
- docs
- lockfile
- resolver
@@ -37,6 +38,7 @@ jobs:
needs:
- build_std
- clippy
+ - credential_msrv
- docs
- lockfile
- resolver
@@ -176,7 +178,7 @@ jobs:
run: 'cargo test -p cargo --test testsuite -- fix::'
env:
__CARGO_TEST_FORCE_ARGFILE: 1
- - run: cargo test --workspace --exclude cargo --exclude benchsuite
+ - run: cargo test --workspace --exclude cargo --exclude benchsuite --exclude resolver-tests
- name: Check benchmarks
run: |
# This only tests one benchmark since it can take over 10 minutes to
@@ -246,3 +248,10 @@ jobs:
cd target
curl -sSLO https://raw.githubusercontent.com/rust-lang/rust/master/src/tools/linkchecker/linkcheck.sh
sh linkcheck.sh --all --path ../src/doc cargo
+
+ credential_msrv:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ - run: rustup update 1.70 && rustup default 1.70
+ - run: cargo test -p cargo-credential