mac (#3)
* mac * Add cross-platform integration tests * Fix ioctl request type for macOS * terminal-guard * suppress bash deprecation warning * test dumb mode * workflow naming
This commit is contained in:
37
.github/workflows/ci.yml
vendored
37
.github/workflows/ci.yml
vendored
@@ -40,10 +40,41 @@ jobs:
|
||||
components: clippy
|
||||
- run: cargo clippy --all-targets --all-features -- -D warnings
|
||||
|
||||
test:
|
||||
name: Test
|
||||
runs-on: ubuntu-latest
|
||||
test-matrix:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- run: cargo test --all-targets
|
||||
|
||||
test:
|
||||
name: Test
|
||||
runs-on: ubuntu-latest
|
||||
needs: test-matrix
|
||||
if: always()
|
||||
steps:
|
||||
- run: |
|
||||
if [[ "${{ needs.test-matrix.result }}" != "success" ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
integration:
|
||||
name: Integration Tests
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- name: Install expect (Linux)
|
||||
if: runner.os == 'Linux'
|
||||
run: sudo apt-get update && sudo apt-get install -y expect
|
||||
- name: Install expect (macOS)
|
||||
if: runner.os == 'macOS'
|
||||
run: command -v expect || brew install expect
|
||||
- run: cargo build
|
||||
- run: expect tests/integration.exp
|
||||
|
||||
Reference in New Issue
Block a user