Test examples (#87)

* Fixing simple_login example

* Adds script that tests the simple_login example

* Add GH action to run said script

Co-authored-by: Kevin Lewi <[email protected]>
This commit is contained in:
François Garillot
2020-11-16 11:41:06 -08:00
committed by GitHub
co-authored by Kevin Lewi
parent 2d7b4292ff
commit f18eaea8cf
2 changed files with 100 additions and 0 deletions
+20
View File
@@ -35,6 +35,26 @@ jobs:
command: test
args: --no-default-features --features ${{ matrix.backend_feature }}
simple-login-test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
name: test simple_login command-line example
steps:
- name: install expect
run: sudo apt-get install expect
- name: Checkout sources
uses: actions/checkout@v2
- name: install rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: rustfmt, clippy
- name: Run expect (which then runs cargo run)
run: expect -f scripts/simple_login.exp
cross-test:
name: Test on ${{ matrix.target }} (using cross)
runs-on: ubuntu-latest