Add CI test for CLI.

This commit is contained in:
Sebastian Schmidt 2023-06-01 15:41:12 +03:00
parent 8b08d2081b
commit 792141839a

View File

@ -181,6 +181,36 @@ jobs:
command: check command: check
args: --all-features --all --bins --examples --tests --lib args: --all-features --all --bins --examples --tests --lib
check_cli:
needs: [ precheck_default, precheck_all_features ]
name: Check CLI
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
rust: [ stable ]
steps:
- uses: actions/checkout@master
- name: Install ${{ matrix.rust }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- name: Rust cache
uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.os }}
- name: CLI
uses: GuillaumeFalourd/assert-command-line-output@v2
with:
command_line: cargo run -- p = 2; p + 3
contains: 5
expected_result: PASSED
detailed_tests: detailed_tests:
needs: [precheck_default, precheck_all_features] needs: [precheck_default, precheck_all_features]
name: Check, test, doc, format and lint with all features name: Check, test, doc, format and lint with all features