diff --git a/.github/workflows/general.yml b/.github/workflows/general.yml deleted file mode 100644 index 011b1f9..0000000 --- a/.github/workflows/general.yml +++ /dev/null @@ -1,61 +0,0 @@ -name: Rust - -on: [push, pull_request] - -env: - CARGO_TERM_COLOR: always - -jobs: - test: - name: Test - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable - - run: | - sudo apt update && sudo apt install -y libnss-wrapper - - uses: Swatinem/rust-cache@v2 - - name: Run tests - env: - NSS_WRAPPER_PASSWD: tests/fixtures/passwd - NSS_WRAPPER_GROUP: tests/fixtures/group - run: | - cargo test - LD_PRELOAD=libnss_wrapper.so cargo test --features test-integration mocked_ - LD_PRELOAD=libnss_wrapper.so cargo test --features test-integration --test '*' - - fmt: - name: Rustfmt - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable - with: - components: rustfmt - - name: Enforce formatting - run: cargo fmt --check - - clippy: - name: Clippy - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable - with: - components: clippy - - uses: Swatinem/rust-cache@v2 - - name: Linting - run: cargo clippy -- -D warnings - - coverage: - name: Code coverage - runs-on: ubuntu-latest - container: - image: xd009642/tarpaulin - options: --security-opt seccomp=unconfined - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - name: Generate code coverage - run: | - cargo tarpaulin --verbose --workspace