diff --git a/.github/workflows/appstream.yml b/.github/workflows/appstream.yml index 4434633..8c541d9 100644 --- a/.github/workflows/appstream.yml +++ b/.github/workflows/appstream.yml @@ -5,6 +5,7 @@ on: pull_request: paths: - 'kibi.metainfo.xml' + - '.github/workflows/appstream.yml' schedule: - cron: '0 0 1 * *' @@ -12,11 +13,11 @@ jobs: appstream_validation: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install Appstream validator run: | sudo apt-get install flatpak flatpak --user remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo flatpak --user install -y flathub org.freedesktop.appstream-glib - name: Validate Appstream metadata - run: flatpak run org.freedesktop.appstream-glib validate kibi.metainfo.xml \ No newline at end of file + run: flatpak run org.freedesktop.appstream-glib validate kibi.metainfo.xml diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index cac7d73..d9c1ebb 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -4,13 +4,14 @@ on: paths: - '**/Cargo.toml' - '**/Cargo.lock' + - '.github/workflows/audit.yml' schedule: - cron: '0 0 * * *' jobs: security_audit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - uses: actions-rs/audit-check@v1 with: token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c5459cf..5a2b3ca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -70,34 +70,25 @@ jobs: RUSTFLAGS: -D warnings steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install gcc-multilib if: matrix.target == 'i686-unknown-linux-gnu' run: | sudo apt-get update sudo apt-get install gcc-multilib - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: ${{ matrix.toolchain || 'stable' }} - target: ${{ matrix.target }} - override: true + run: | + rustup toolchain install ${{ matrix.toolchain || 'stable' }} + rustup override set ${{ matrix.toolchain || 'stable' }} + rustup target add --toolchain ${{ matrix.toolchain || 'stable' }} ${{ matrix.target }} - name: Build - uses: actions-rs/cargo@v1 - with: - command: build + run: cargo build - name: Run tests without coverage instrumentation if: ${{ ! matrix.coverage }} - uses: actions-rs/cargo@v1 - with: - command: test - args: --verbose --all-features --no-fail-fast + run: cargo test --verbose --all-features --no-fail-fast - name: Run tests with coverage instrumentation if: matrix.coverage - uses: actions-rs/cargo@v1 - with: - command: test - args: --verbose --all-features --no-fail-fast + run: cargo test --verbose --all-features --no-fail-fast env: CARGO_INCREMENTAL: '0' RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests' @@ -127,7 +118,7 @@ jobs: env: CARGO_TERM_COLOR: always steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install Rust toolchain uses: actions-rs/toolchain@v1 with: @@ -162,22 +153,17 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install nightly with clippy and rustfmt - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - components: rustfmt, clippy - target: ${{ matrix.target }} - override: true + run: | + rustup toolchain install nightly --component rustfmt --component clippy --allow-downgrade + rustup override set nightly + rustup target add --toolchain nightly ${{ matrix.target }} - name: Run rustfmt check - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --check + run: cargo fmt --check - name: Run Clippy - uses: actions-rs/clippy-check@v1 + uses: giraffate/clippy-action@v1 with: - token: ${{ secrets.GITHUB_TOKEN }} - args: --all-features --target ${{ matrix.target }} -- -D warnings -D clippy::pedantic - name: clippy-${{ matrix.target }} + clippy_flags: --all-features --target ${{ matrix.target }} -- -D warnings -D clippy::pedantic + tool_name: clippy-${{ matrix.target }} + reporter: github-pr-review diff --git a/.github/workflows/devskim.yml b/.github/workflows/devskim.yml index c8ccb9f..7263e88 100644 --- a/.github/workflows/devskim.yml +++ b/.github/workflows/devskim.yml @@ -2,9 +2,11 @@ name: DevSkim on: push: - branches: [ master ] + branches: + - master pull_request: - branches: [ master ] + branches: + - master schedule: - cron: '25 16 * * 1' @@ -18,11 +20,11 @@ jobs: security-events: write steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Run DevSkim scanner uses: microsoft/DevSkim-Action@v1 - + - name: Upload DevSkim scan results to GitHub Security tab uses: github/codeql-action/upload-sarif@v1 with: diff --git a/.github/workflows/loc.yml b/.github/workflows/loc.yml index 23a914c..5f57c9e 100644 --- a/.github/workflows/loc.yml +++ b/.github/workflows/loc.yml @@ -3,6 +3,7 @@ on: paths: - '**.rs' - 'count_loc.sh' + - '.github/workflows/loc.yml' name: 'LOC' @@ -13,12 +14,8 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install tokei - uses: actions-rs/install@v0.1 - with: - crate: tokei - version: latest - use-tool-cache: true + run: cargo install tokei - name: Check LOC <= 1024 run: ./count_loc.sh diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml index 7675440..d88bba8 100644 --- a/.github/workflows/shellcheck.yml +++ b/.github/workflows/shellcheck.yml @@ -2,6 +2,7 @@ on: pull_request: paths: - '**.sh' + - '.github/workflows/shellcheck.yml' name: 'ShellCheck' @@ -10,7 +11,7 @@ jobs: name: ShellCheck runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Run ShellCheck uses: ludeeus/action-shellcheck@master env: diff --git a/.github/workflows/slscan.yml b/.github/workflows/slscan.yml index de6d62c..05f3ce2 100644 --- a/.github/workflows/slscan.yml +++ b/.github/workflows/slscan.yml @@ -5,9 +5,11 @@ name: SL Scan on: push: - branches: [ master ] + branches: + - master pull_request: - branches: [ master ] + branches: + - master schedule: - cron: '22 17 * * 5' @@ -16,7 +18,7 @@ jobs: # Scan runs on ubuntu, mac and windows runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Perform Scan uses: ShiftLeftSecurity/scan-action@master