Skip to content

Release pipeline only when changes in src/ #14

Release pipeline only when changes in src/

Release pipeline only when changes in src/ #14

Workflow file for this run

name: Test πŸ€–
on:
pull_request:
push:
paths:
- 'src/**'
- '.github/workflows/**'
branches:
- '**'
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: Test
strategy:
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- os: macOS-latest
target: x86_64-apple-darwin
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
targets: ${{ matrix.target }}
- name: Run cargo test
run: cargo test --locked --target ${{ matrix.target }}
- name: Run tests feature variation
run: cargo test --locked --target ${{ matrix.target }} --no-default-features
rusfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
components: rustfmt
- name: Check formatting
run: cargo fmt --all -- --check
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
components: clippy
- name: Check formatting
run: cargo clippy --all-features -- -D warnings