Skip to content

Commit e784bb1

Browse files
committed
test
1 parent cc91f30 commit e784bb1

File tree

3 files changed

+30
-4
lines changed

3 files changed

+30
-4
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ jobs:
5353
- toolchain: stable
5454
features: js
5555
target: wasm32-unknown-unknown
56+
- crate_name: oauth1-request
57+
- toolchain: '1.46.0'
58+
crate_name: oauth1-request-test
5659
steps:
5760
- uses: actions/checkout@v2
5861
- name: Install Rust toolchain
@@ -85,29 +88,30 @@ jobs:
8588
uses: actions-rs/cargo@v1
8689
with:
8790
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 }}'
8992
- name: Check docs of `oauth1-request`
9093
if: matrix.features == 'js,derive'
9194
uses: actions-rs/cargo@v1
9295
with:
9396
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
9598
- name: Build `oauth1-request`
9699
uses: actions-rs/cargo@v1
97100
with:
98101
command: build
99-
args: --verbose --tests --manifest-path oauth1-request/Cargo.toml --no-default-features '--features=${{ matrix.features }}'
102+
args: --verbose --tests --manifest-path ${{ matrix.crate_name }}/Cargo.toml --no-default-features '--features=${{ matrix.features }}'
100103
- name: Build `examples`
101104
if: ${{ matrix.target == '' && matrix.toolchain != '1.46.0' }}
102105
uses: actions-rs/cargo@v1
103106
with:
104107
command: build
105108
args: --verbose --manifest-path examples/Cargo.toml
106109
- name: Test `oauth1-request`
110+
if: ${{ matrix.target == '' && matrix.toolchain != '1.46.0' }}
107111
uses: actions-rs/cargo@v1
108112
with:
109113
command: test
110-
args: --manifest-path oauth1-request/Cargo.toml --no-default-features '--features=${{ matrix.features }}'
114+
args: --manifest-path ${{ matrix.crate_name }}/Cargo.toml --no-default-features '--features=${{ matrix.features }}'
111115
derive-test:
112116
name: Test `oauth1-request-derive`
113117
runs-on: ubuntu-latest

oauth1-request-test/Cargo.toml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[package]
2+
name = "oauth-credentials-test"
3+
version = "0.0.0"
4+
authors = ["Daiki Mizukami <[email protected]>"]
5+
description = "A hack to make the CI work with older toolchains."
6+
publish = false
7+
8+
[dependencies]
9+
oauth1-request = { path = "../oauth1-request", default-features = false }
10+
11+
[features]
12+
default = ["derive", "hmac-sha1", "std"]
13+
alloc = ["oauth1-request/alloc"]
14+
derive = ["oauth1-request/derive"]
15+
hmac-sha1 = ["oauth1-request/hmac-sha1"]
16+
rsa-sha1-06 = ["oauth1-request/rsa-sha1-06"]
17+
rsa-sha1-09 = ["oauth1-request/rsa-sha1-09"]
18+
js = ["oauth1-request/js"]
19+
serde = ["oauth1-request/serde"]
20+
std = ["oauth1-request/std"]
21+
test = ["oauth1-request/test"]

oauth1-request-test/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pub use oauth_request::*;

0 commit comments

Comments
 (0)