From 62563914081ed631d58d9e1f7ac56e4bef6b7655 Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Mon, 17 Jun 2024 22:41:49 -0600 Subject: [PATCH] github-ci: run cargo update test on pull requests Previously it was run once a week, hiding some issues until Monday's. Instead run on pull requests, but still not every push. --- .github/workflows/rust-checks.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/rust-checks.yml b/.github/workflows/rust-checks.yml index 142832f4d8..ac9b9bb3ea 100644 --- a/.github/workflows/rust-checks.yml +++ b/.github/workflows/rust-checks.yml @@ -4,6 +4,7 @@ on: schedule: # Run on Monday mornings, 11AM UTC. - cron: '0 11 * * 1' + pull_request: # Enable push for testing when working on this file. #push: workflow_dispatch: @@ -14,9 +15,6 @@ concurrency: permissions: read-all -env: - RUST_VERSION_MIN: "1.63.0" - jobs: # This job runs `cargo audit` and will exit with a failure code if @@ -160,11 +158,11 @@ jobs: sudo \ which \ zlib-devel + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - name: Install Minimum Supported Rust Version run: | - curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain ${RUST_VERSION_MIN} -y + curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $(awk -F '"' '/rust-version/ { print $2 }' rust/Cargo.toml.in) echo "$HOME/.cargo/bin" >> $GITHUB_PATH - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - name: Configure Suricata run: | ./scripts/bundle.sh libhtp