Add optional AWG 3.0 protocol mode #714
Workflow file for this run
This file contains hidden or 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: Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| unit-tests: | |
| name: Unit Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Run unit tests | |
| run: | | |
| bash tests/test-functions.sh | |
| bash tests/test-awg3.sh | |
| bash tests/test-cargo-build-common.sh | |
| bash tests/test-ubuntu-ppa.sh | |
| bash tests/test-proxy-scripts.sh | |
| sudo bash tests/test-proxy-bootstrap.sh | |
| - name: Run proxy Rust tests | |
| working-directory: amneziawg-proxy | |
| run: | | |
| cargo test | |
| cargo check --examples | |
| - name: Run web-panel Rust tests | |
| working-directory: amneziawg-web | |
| run: cargo test | |
| proxy-rust-msrv: | |
| name: Proxy Rust Tests (MSRV 1.75) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Rust | |
| uses: dtolnay/rust-toolchain@1.75.0 | |
| - name: Run proxy Rust tests | |
| working-directory: amneziawg-proxy | |
| run: | | |
| cargo test | |
| cargo check --examples | |
| integration-tests: | |
| name: Integration (${{ matrix.distro }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - distro: "ubuntu:22.04" | |
| prepare: ":" | |
| expect_real_sudo_auth: "false" | |
| - distro: "ubuntu:24.04" | |
| prepare: ":" | |
| expect_real_sudo_auth: "false" | |
| - distro: "ubuntu:26.04" | |
| prepare: "apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y sudo-rs && test -x /usr/bin/sudo && command -v visudo >/dev/null" | |
| expect_real_sudo_auth: "true" | |
| - distro: "debian:11" | |
| prepare: ":" | |
| expect_real_sudo_auth: "false" | |
| - distro: "debian:12" | |
| prepare: ":" | |
| expect_real_sudo_auth: "false" | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Syntax check | |
| run: | | |
| bash -n amneziawg-install.sh | |
| bash -n amneziawg-web.sh | |
| bash -n amneziawg-proxy.sh | |
| bash -n scripts/amneziawg-cargo-build.sh | |
| - name: Run integration test in Docker | |
| run: | | |
| docker run --rm \ | |
| -e EXPECT_REAL_SUDO_AUTH='${{ matrix.expect_real_sudo_auth }}' \ | |
| -v "$PWD:/workspace:ro" \ | |
| -w /workspace \ | |
| ${{ matrix.distro }} \ | |
| bash -lc '${{ matrix.prepare }} && bash tests/test-install-mock.sh' | |
| resolute-live: | |
| name: Ubuntu 26.04 PPA + DKMS Live Smoke | |
| runs-on: ubuntu-26.04 | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Validate signed PPA selection, DKMS, module, and tools | |
| run: sudo bash tests/test-ubuntu-resolute-live.sh |