99 CARGO_INCREMENTAL : 0
1010
1111jobs :
12+ msrv :
13+ name : Get minimum supported rust version
14+ runs-on : ubuntu-20.04
15+ outputs :
16+ msrv : ${{ steps.get_msrv.outputs.msrv }}
17+ steps :
18+ - uses : actions/checkout@v3
19+ - id : get_msrv
20+ run : |
21+ MSRV=$(cargo metadata --format-version=1 --no-deps | jq '.packages[] | select(.name == "azure_core").rust_version' -r)
22+ echo setting msrv to ${MSRV}
23+ echo msrv=${MSRV} >> "$GITHUB_OUTPUT"
24+
1225 code-style :
1326 name : Code Style
1427 runs-on : ubuntu-20.04
1528 steps :
1629 - uses : actions/checkout@v3
1730 - uses : Swatinem/rust-cache@v2
18- - run : eng/scripts/code_style.sh
31+ # for code style, we only care about `stable`
32+ - run : eng/scripts/code_style.sh stable
1933
2034 test-sdk :
2135 name : SDK Tests
2236 runs-on : ubuntu-20.04
37+ needs :
38+ - msrv
2339 strategy :
2440 matrix :
2541 build :
2642 - stable
2743 - nightly
44+ - ${{ needs.msrv.outputs.msrv }}
2845 steps :
2946 - uses : actions/checkout@v3
3047 - uses : Swatinem/rust-cache@v2
@@ -33,41 +50,58 @@ jobs:
3350 test-services :
3451 name : Services Tests
3552 runs-on : ubuntu-20.04
53+ needs :
54+ - msrv
55+ strategy :
56+ matrix :
57+ build :
58+ - stable
59+ - nightly
60+ - ${{ needs.msrv.outputs.msrv }}
3661 steps :
3762 - uses : actions/checkout@v3
3863 - uses : Swatinem/rust-cache@v2
3964 with :
4065 workspaces : services
41- - run : eng/scripts/services_tests.sh
66+ - run : eng/scripts/services_tests.sh ${{ matrix.build }}
4267 - name : display free disk space
4368 run : df -h /
4469 if : ${{ always() }}
4570
4671 test-integration :
4772 name : Integration Tests
4873 runs-on : ubuntu-20.04
74+ needs :
75+ - msrv
76+ strategy :
77+ matrix :
78+ build :
79+ - stable
80+ - nightly
81+ - ${{ needs.msrv.outputs.msrv }}
4982 steps :
5083 - uses : actions/checkout@v3
51- - run : rustup update --no-self-update stable
5284 - uses : Swatinem/rust-cache@v2
53-
54- - name : emulator integration tests
55- run : |
56- 57- npx azurite &
58- cargo test --features test_integration
59-
85+ - run : eng/scripts/emulator_tests.sh ${{ matrix.build }}
6086 - name : display free disk space
6187 run : df -h /
6288 if : ${{ always() }}
6389
6490 test-e2e :
6591 name : E2E Tests
6692 runs-on : ubuntu-20.04
93+ needs :
94+ - msrv
95+ strategy :
96+ matrix :
97+ build :
98+ - stable
99+ - nightly
100+ - ${{ needs.msrv.outputs.msrv }}
67101 steps :
68102 - uses : actions/checkout@v3
69103 - uses : Swatinem/rust-cache@v2
70- - run : eng/scripts/e2e_tests.sh
104+ - run : eng/scripts/e2e_tests.sh ${{ matrix.build }}
71105 - name : display free disk space
72106 run : df -h /
73107 if : ${{ always() }}
90124 with :
91125 repository : OAI/OpenAPI-Specification
92126 path : OpenAPI-Specification
127+ # for code style, we only care about `stable`
93128 - run : azure-sdk-for-rust/eng/scripts/autorust_tests.sh
0 commit comments