style: fix typo #636
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: Test | |
| on: | |
| push: | |
| paths-ignore: | |
| - "documents/**" | |
| - "assets/**" | |
| pull_request: | |
| types: [ready_for_review, opened, synchronize, reopened] | |
| paths-ignore: | |
| - "documents/**" | |
| - "assets/**" | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| concurrency: | |
| group: test-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test-all-features: | |
| name: cargo test with all features | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - kernel: "5.4" | |
| llvm: "14" | |
| - kernel: "5.15" | |
| llvm: "17" | |
| - kernel: "6.8" | |
| llvm: "17" | |
| - kernel: "6.12" | |
| llvm: "17" | |
| runs-on: ${{ matrix.kernel }} | |
| if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event.pull_request.head.repo.full_name != github.repository | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - uses: dtolnay/rust-toolchain@stable | |
| - run: sudo apt-get update && sudo apt-get install -y iproute2 ethtool iputils-ping iperf3 datamash bc pkg-config m4 libelf-dev libpcap-dev gcc-multilib libnftnl-dev libmnl-dev -y | |
| - name: Cache LLVM and Clang | |
| id: cache-llvm | |
| uses: maxnowack/local-cache@v2 | |
| with: | |
| path: | | |
| C:/Program Files/LLVM | |
| ./llvm | |
| key: llvm-${{ matrix.llvm }} | |
| - name: Install LLVM and Clang | |
| uses: KyleMayes/install-llvm-action@v2 | |
| with: | |
| version: ${{ matrix.llvm }} | |
| cached: ${{ steps.cache-llvm.outputs.cache-hit }} | |
| - name: Install nextest | |
| uses: taiki-e/install-action@nextest | |
| - run: cargo nextest run --profile ci -F http,camellia --release --workspace | |
| env: | |
| RUST_LOG: "info" | |
| CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER: "sudo -E" | |
| # For insta to disable writing new snapshot files and fail on mismatch | |
| CI: "true" | |
| - name: Test CLI | |
| run: ./ci/scripts/test_cli.sh | |
| - run: sudo ./scripts/clean_stdenv.sh -a |