Skip to content

Commit

Permalink
github-ci: run cargo update test on pull requests
Browse files Browse the repository at this point in the history
Previously it was run once a week, hiding some issues until
Monday's. Instead run on pull requests, but still not every push.
  • Loading branch information
jasonish authored and victorjulien committed Jun 18, 2024
1 parent e3e917d commit 6256391
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/rust-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6256391

Please sign in to comment.