chore: update dependencies #266
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push, pull_request] | |
name: Default | |
jobs: | |
check: | |
name: Check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
- name: Install stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: Run cargo check no-feature | |
uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
- name: Run cargo check reqwest | |
uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
args: --features reqwest --target x86_64-unknown-linux-gnu | |
- name: Run cargo check ureq | |
uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
args: --features ureq --target x86_64-unknown-linux-gnu | |
- name: Install wasm toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
target: wasm32-unknown-unknown | |
toolchain: stable | |
override: true | |
- name: Run cargo check wasm | |
uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
args: --target wasm32-unknown-unknown | |
- name: Run cargo check workspace examples | |
uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
args: --workspace --target wasm32-unknown-unknown | |
- name: Run cargo check min-req-adapter | |
uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
args: -p min-req-adapter | |
test: | |
name: Test Suite | |
runs-on: ubuntu-latest | |
services: | |
wiremock: | |
image: rodolpheche/wiremock | |
ports: | |
- 8080:8080 | |
options: --name wiremock -v ${{ github.workspace }}/tests/stubs:/home/wiremock | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
with: | |
path: 'checkout' | |
- name: Move files | |
run: sudo apt-get update && sudo apt-get install -y rsync && sudo rsync -avu checkout/ ./ && sudo chown -R 1001 . | |
- name: Restart wiremock | |
uses: docker://docker | |
with: | |
args: docker restart wiremock | |
- name: Install stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: Run cargo test reqwest | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --features reqwest --target x86_64-unknown-linux-gnu | |
- name: Run cargo test ureq | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --features ureq --target x86_64-unknown-linux-gnu |