diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 5392b12..de5b5e9 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -27,5 +27,6 @@ jobs: uses: github/super-linter@v6 env: VALIDATE_ALL_CODEBASE: false + VALIDATE_JSCPD: false DEFAULT_BRANCH: main GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index e058fb5..79b9d31 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -26,7 +26,7 @@ jobs: fail-fast: false matrix: rust: [ stable, nightly ] - fedora: [ 37, 38, 39, rawhide ] + fedora: [ 39, 40, rawhide ] include: - rust: nightly fedora: 39 @@ -51,7 +51,9 @@ jobs: # required to be able to build rust packages: Development Tools # https://trendoceans.com/fix-linker-cc-not-found/ run: | - sudo dnf groupinstall -y "Development Tools" + sudo dnf groupinstall -y "Development Tools" || \ + sudo dnf5 group install -y development-tools || \ + sudo dnf5 group list - name: Test if: ${{ matrix.coverage != true }} @@ -79,6 +81,7 @@ jobs: with: files: ${{ steps.coverage.outputs.report }} fail_ci_if_error: false + token: ${{ secrets.CODECOV_TOKEN }} rustfmt: name: Cargo Fmt diff --git a/.packit.yml b/.packit.yml index 38bcb0f..0651004 100644 --- a/.packit.yml +++ b/.packit.yml @@ -13,13 +13,8 @@ jobs: job: copr_build trigger: pull_request targets: + - fedora-stable-x86_64 - fedora-rawhide-x86_64 - - centos-stream-9-x86_64 - <<: *copr trigger: release - - - job: propose_downstream - trigger: release - dist_git_branches: - - main diff --git a/src/lib.rs b/src/lib.rs index 16b91c9..751e37b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -24,7 +24,7 @@ pub fn is_like_kernel_name(new_devname: &str) -> bool { IS_NEW_DEVNAME_ETH_LIKE.is_match(new_devname) } -pub fn is_test_mode(params: &Vec, number_params_required: usize) -> bool { +pub fn is_test_mode(params: &[String], number_params_required: usize) -> bool { params.len() >= number_params_required }