|
53 | 53 | - toolchain: stable
|
54 | 54 | features: js
|
55 | 55 | target: wasm32-unknown-unknown
|
| 56 | + - crate_name: oauth1-request |
| 57 | + - toolchain: '1.46.0' |
| 58 | + crate_name: oauth1-request-test |
56 | 59 | steps:
|
57 | 60 | - uses: actions/checkout@v2
|
58 | 61 | - name: Install Rust toolchain
|
@@ -85,29 +88,31 @@ jobs:
|
85 | 88 | uses: actions-rs/cargo@v1
|
86 | 89 | with:
|
87 | 90 | command: clippy
|
88 |
| - args: --verbose --tests --manifest-path oauth1-request/Cargo.toml --no-default-features '--features=${{ matrix.features }}' |
| 91 | + args: --verbose --tests --manifest-path ${{ matrix.crate_name }}/Cargo.toml --no-default-features '--features=${{ matrix.features }}' |
89 | 92 | - name: Check docs of `oauth1-request`
|
90 | 93 | if: matrix.features == 'js,derive'
|
91 | 94 | uses: actions-rs/cargo@v1
|
92 | 95 | with:
|
93 | 96 | command: doc
|
94 |
| - args: --verbose --manifest-path oauth1-request/Cargo.toml --no-default-features '--features=${{ matrix.features }}' --no-deps |
| 97 | + args: --verbose --manifest-path ${{ matrix.crate_name }}/Cargo.toml --no-default-features '--features=${{ matrix.features }}' --no-deps |
95 | 98 | - name: Build `oauth1-request`
|
| 99 | + if: matrix.crate_name != 'oauth1-request-test' || !contains(matrix.features, 'derive') |
96 | 100 | uses: actions-rs/cargo@v1
|
97 | 101 | with:
|
98 | 102 | command: build
|
99 |
| - args: --verbose --tests --manifest-path oauth1-request/Cargo.toml --no-default-features '--features=${{ matrix.features }}' |
| 103 | + args: --verbose --tests --manifest-path ${{ matrix.crate_name }}/Cargo.toml --no-default-features '--features=${{ matrix.features }}' |
100 | 104 | - name: Build `examples`
|
101 | 105 | if: ${{ matrix.target == '' && matrix.toolchain != '1.46.0' }}
|
102 | 106 | uses: actions-rs/cargo@v1
|
103 | 107 | with:
|
104 | 108 | command: build
|
105 | 109 | args: --verbose --manifest-path examples/Cargo.toml
|
106 | 110 | - name: Test `oauth1-request`
|
| 111 | + if: ${{ matrix.target == '' && matrix.toolchain != '1.46.0' }} |
107 | 112 | uses: actions-rs/cargo@v1
|
108 | 113 | with:
|
109 | 114 | command: test
|
110 |
| - args: --manifest-path oauth1-request/Cargo.toml --no-default-features '--features=${{ matrix.features }}' |
| 115 | + args: --manifest-path ${{ matrix.crate_name }}/Cargo.toml --no-default-features '--features=${{ matrix.features }}' |
111 | 116 | derive-test:
|
112 | 117 | name: Test `oauth1-request-derive`
|
113 | 118 | runs-on: ubuntu-latest
|
|
0 commit comments