Skip to content

Add webhook sink for alerting processor (#179) #935

Add webhook sink for alerting processor (#179)

Add webhook sink for alerting processor (#179) #935

Workflow file for this run

name: "Lint"
on:
# Allow us to run this specific workflow without a PR
workflow_dispatch:
pull_request:
push:
branches:
- main
# cancel redundant builds
concurrency:
# for push and workflow_dispatch events we use `github.sha` in the concurrency group and don't really cancel each other out/limit concurrency
# for pull_request events newer jobs cancel earlier jobs to save on CI etc.
group: ${{ github.workflow }}-${{ github.event_name }}-${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.sha || github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
License-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check license headers
run: python3 scripts/check_license.py --check
Rust:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Ensures to use the Rust toolchain version
- uses: dsherret/rust-toolchain-file@v1
- name: Install deps and run linter
run: |
sudo apt update && sudo apt install libdw-dev protobuf-compiler
cargo install cargo-sort
rustup update
rustup toolchain install nightly
rustup component add clippy --toolchain nightly
rustup component add rustfmt --toolchain nightly
scripts/rust_lint.sh --check
- name: Ensure the --no-default-features build passes too
run: cargo build --all-targets --no-default-features