Skip to content

ci: improve gh actions with path-based triggers #16

ci: improve gh actions with path-based triggers

ci: improve gh actions with path-based triggers #16

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
paths:
- 'src/**'
- 'Cargo.toml'
- 'Cargo.lock'
- 'assets/services'
- 'build.rs'
- '.github/workflows/rust.yml'
pull_request:
branches: [ "main" ]
paths:
- 'src/**'
- 'Cargo.toml'
- 'Cargo.lock'
- 'assets/services'
- 'build.rs'
- '.github/workflows/rust.yml'
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install libpcap
run: sudo apt-get update && sudo apt-get install -y libpcap-dev
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose