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.
pull/11326/head
Jason Ish 9 months ago committed by Victor Julien
parent e3e917d967
commit 6256391408

@ -4,6 +4,7 @@ on:
schedule: schedule:
# Run on Monday mornings, 11AM UTC. # Run on Monday mornings, 11AM UTC.
- cron: '0 11 * * 1' - cron: '0 11 * * 1'
pull_request:
# Enable push for testing when working on this file. # Enable push for testing when working on this file.
#push: #push:
workflow_dispatch: workflow_dispatch:
@ -14,9 +15,6 @@ concurrency:
permissions: read-all permissions: read-all
env:
RUST_VERSION_MIN: "1.63.0"
jobs: jobs:
# This job runs `cargo audit` and will exit with a failure code if # This job runs `cargo audit` and will exit with a failure code if
@ -160,11 +158,11 @@ jobs:
sudo \ sudo \
which \ which \
zlib-devel zlib-devel
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Install Minimum Supported Rust Version - name: Install Minimum Supported Rust Version
run: | 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 echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Configure Suricata - name: Configure Suricata
run: | run: |
./scripts/bundle.sh libhtp ./scripts/bundle.sh libhtp

Loading…
Cancel
Save