Skip to content

ci: fix trigger for detecting release #30

ci: fix trigger for detecting release

ci: fix trigger for detecting release #30

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
name: Check
steps:
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- uses: actions/checkout@v4
- run: |
cargo check --locked
cargo fmt --all -- --check
cargo clippy -- -Dwarnings
tests:
if: github.ref_type == 'tag' || startsWith(github.ref, 'refs/pull/')
needs: lint
runs-on: ubuntu-latest
name: Tests
steps:
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- uses: actions/checkout@v4
- run: cargo test