* 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:
David Beesley
2026-01-18 09:31:21 +13:00
committed by GitHub
parent 91e0516fe9
commit b800ec12b9
4 changed files with 430 additions and 104 deletions

View File

@@ -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