Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,24 @@ jobs:
- name: Cache dependencies
uses: Swatinem/rust-cache@v2

- name: Install tools
uses: taiki-e/install-action@v2
with:
tool: cargo-llvm-cov

- name: Security audit
uses: rustsec/audit-check@v2.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Run checks
shell: bash
run: ./scripts/checks.sh

- name: Upload coverage to Codecov
if: matrix.os == 'ubuntu-latest' && success()
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./cobertura.xml
fail_ci_if_error: true
- name: hehe
run: |
cargo build

# - name: Install tools
# uses: taiki-e/install-action@v2
# with:
# tool: cargo-llvm-cov

# - name: Run checks
# shell: bash
# run: ./scripts/checks.sh

# - name: Upload coverage to Codecov
# if: success()
# uses: codecov/codecov-action@v5
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# files: ./cobertura.xml
# fail_ci_if_error: true
# slug: avocado-linux/prserv
1 change: 1 addition & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ jobs:
checks:
name: Run Checks
uses: ./.github/workflows/checks.yml
secrets: inherit
14 changes: 0 additions & 14 deletions scripts/checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,6 @@

set -e

cargo fmt --all -- --check
cargo clippy --all-targets --all-features -- -D warnings
cargo check --all-targets

# Check for cargo-audit (skip in CI as it's handled by GitHub Action)
if [ -z "$CI" ]; then
if ! command -v cargo-audit &> /dev/null; then
echo -e "\033[1;31m[ERROR]\033[0m cargo-audit is not installed."
echo "cargo install cargo-audit"
exit 1
fi
cargo audit
fi

# Check for cargo-llvm-cov (skip check in CI as it's installed by workflow)
if [ -z "$CI" ]; then
if ! command -v cargo-llvm-cov &> /dev/null; then
Expand Down
Loading