|
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
|
@@ -80,34 +83,38 @@ jobs:
|
80 | 83 | if: matrix.toolchain == '1.46.0'
|
81 | 84 | - run: echo 'CARGO_BUILD_TARGET=${{ matrix.target }}' >> "$GITHUB_ENV"
|
82 | 85 | if: matrix.target != ''
|
| 86 | + - run: rm Cargo.toml |
| 87 | + if: matrix.crate_name == 'oauth1-request-test' |
83 | 88 | - name: Clippy `oauth1-request`
|
84 | 89 | if: contains(matrix.components, 'clippy')
|
85 | 90 | uses: actions-rs/cargo@v1
|
86 | 91 | with:
|
87 | 92 | command: clippy
|
88 |
| - args: --verbose --tests --manifest-path oauth1-request/Cargo.toml --no-default-features '--features=${{ matrix.features }}' |
| 93 | + args: --verbose --tests --manifest-path ${{ matrix.crate_name }}/Cargo.toml --no-default-features '--features=${{ matrix.features }}' |
89 | 94 | - name: Check docs of `oauth1-request`
|
90 | 95 | if: matrix.features == 'js,derive'
|
91 | 96 | uses: actions-rs/cargo@v1
|
92 | 97 | with:
|
93 | 98 | command: doc
|
94 |
| - args: --verbose --manifest-path oauth1-request/Cargo.toml --no-default-features '--features=${{ matrix.features }}' --no-deps |
| 99 | + args: --verbose --manifest-path ${{ matrix.crate_name }}/Cargo.toml --no-default-features '--features=${{ matrix.features }}' --no-deps |
95 | 100 | - name: Build `oauth1-request`
|
| 101 | + if: matrix.crate_name != 'oauth1-request-test' || !contains(matrix.features, 'derive') |
96 | 102 | uses: actions-rs/cargo@v1
|
97 | 103 | with:
|
98 | 104 | command: build
|
99 |
| - args: --verbose --tests --manifest-path oauth1-request/Cargo.toml --no-default-features '--features=${{ matrix.features }}' |
| 105 | + args: --verbose --tests --manifest-path ${{ matrix.crate_name }}/Cargo.toml --no-default-features '--features=${{ matrix.features }}' |
100 | 106 | - name: Build `examples`
|
101 | 107 | if: ${{ matrix.target == '' && matrix.toolchain != '1.46.0' }}
|
102 | 108 | uses: actions-rs/cargo@v1
|
103 | 109 | with:
|
104 | 110 | command: build
|
105 | 111 | args: --verbose --manifest-path examples/Cargo.toml
|
106 | 112 | - name: Test `oauth1-request`
|
| 113 | + if: ${{ matrix.target == '' && matrix.toolchain != '1.46.0' }} |
107 | 114 | uses: actions-rs/cargo@v1
|
108 | 115 | with:
|
109 | 116 | command: test
|
110 |
| - args: --manifest-path oauth1-request/Cargo.toml --no-default-features '--features=${{ matrix.features }}' |
| 117 | + args: --manifest-path ${{ matrix.crate_name }}/Cargo.toml --no-default-features '--features=${{ matrix.features }}' |
111 | 118 | derive-test:
|
112 | 119 | name: Test `oauth1-request-derive`
|
113 | 120 | runs-on: ubuntu-latest
|
|
0 commit comments