Update dialoguer requirement from 0.10.0 to 0.11.0 #206
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
name: Build and Test | |
on: | |
push: | |
branches: | |
- "**" | |
tags-ignore: | |
- "**" | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build_and_test: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
- name: Install cargo-nextest | |
run: | | |
curl -LsSf https://get.nexte.st/0.9/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin | |
cargo nextest --version | |
- uses: Swatinem/rust-cache@v2 | |
- name: Check format | |
run: cargo fmt --all -- --check | |
- name: Build | |
run: cargo build --all-targets --workspace | |
- name: Clippy | |
run: cargo clippy --all-targets --workspace -- -D warnings | |
- name: Test | |
run: | | |
cargo nextest run --color always --all-targets --workspace | |
cargo test --doc | |
- name: Acceptance tests in Sandbox environment | |
env: | |
ACCEPTANCE_TESTS_CLIENT_ID: ${{ secrets.ACCEPTANCE_TESTS_CLIENT_ID }} | |
ACCEPTANCE_TESTS_CLIENT_SECRET: ${{ secrets.ACCEPTANCE_TESTS_CLIENT_SECRET }} | |
ACCEPTANCE_TESTS_SIGNING_KEY_ID: ${{ secrets.ACCEPTANCE_TESTS_SIGNING_KEY_ID }} | |
ACCEPTANCE_TESTS_SIGNING_PRIVATE_KEY: ${{ secrets.ACCEPTANCE_TESTS_SIGNING_PRIVATE_KEY }} | |
ACCEPTANCE_TESTS_MERCHANT_ACCOUNT_GBP_ID: ${{ secrets.ACCEPTANCE_TESTS_MERCHANT_ACCOUNT_GBP_ID }} | |
ACCEPTANCE_TESTS_MERCHANT_ACCOUNT_GBP_SWEEPING_IBAN: ${{ secrets.ACCEPTANCE_TESTS_MERCHANT_ACCOUNT_GBP_SWEEPING_IBAN }} | |
run: cargo nextest run --color always --all-targets --workspace --features acceptance-tests 'integration_tests::' |