File tree Expand file tree Collapse file tree 3 files changed +10
-19
lines changed Expand file tree Collapse file tree 3 files changed +10
-19
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ name: Build and Test
33on :
44 pull_request :
55 push :
6+ schedule :
7+ - cron : " 0 0 * * 0"
68
79env :
810 RUSTFLAGS : -Dwarnings
1820 - uses : actions/checkout@v4
1921 - id : get_msrv
2022 run : |
21- MSRV=$(cargo metadata --format-version=1 --no-deps | jq '.packages[] | select(.name == "azure_core").rust_version' -r)
23+ MSRV=$(cargo metadata --format-version=1 --no-deps | jq '.packages[] | select(.name == "azure_core").rust_version' -r)
2224 echo setting msrv to ${MSRV}
2325 echo msrv=${MSRV} >> "$GITHUB_OUTPUT"
2426
@@ -113,12 +115,16 @@ jobs:
113115 - false
114116 include :
115117 - build : nightly
118+ clippy : false
116119 experimental : true
120+ - clippy : true
117121 steps :
118122 - uses : actions/checkout@v4
119123 - uses : Swatinem/rust-cache@v2
120124 with :
121125 workspaces : services
126+ - run : echo "NO_CLIPPY=true" >> $GITHUB_ENV
127+ if : github.event_name != 'schedule' && ! matrix.clippy
122128 - run : eng/scripts/services_tests.sh ${{ matrix.build }}
123129 - name : display free disk space
124130 run : df -h /
Original file line number Diff line number Diff line change @@ -12,5 +12,7 @@ rustup component add rustfmt clippy --toolchain ${BUILD}
1212export RUSTFLAGS=" -Dwarnings -Aunreachable-code -Aunused-assignments -Adead-code -Aclippy::new-without-default -Aclippy::unnecessary_to_owned"
1313cargo +${BUILD} check --manifest-path services/Cargo.toml --all
1414cargo +${BUILD} check --manifest-path services/Cargo.toml --examples
15- cargo +${BUILD} clippy --manifest-path services/Cargo.toml --all
15+ if [ -z $NO_CLIPPY ]; then
16+ cargo +${BUILD} clippy --manifest-path services/Cargo.toml --all
17+ fi
1618cargo +${BUILD} fmt --manifest-path services/Cargo.toml --all -- --check
You can’t perform that action at this time.
0 commit comments