Skip to content

Merge pull request #135 from projectsyn/renovate/mikepenz-release-cha… #683

Merge pull request #135 from projectsyn/renovate/mikepenz-release-cha…

Merge pull request #135 from projectsyn/renovate/mikepenz-release-cha… #683

Workflow file for this run

name: Rust
on:
push:
branches:
- main
- master
pull_request:
workflow_dispatch:
jobs:
lints:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --check
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features
tests:
strategy:
matrix:
runner:
- ubuntu-latest
- macos-latest
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
- uses: actions-rs/cargo@v1
with:
command: check
- uses: actions-rs/cargo@v1
with:
command: test
benchmarks:
runs-on: ubuntu-latest
if: github.base_ref != ''
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
- uses: boa-dev/criterion-compare-action@v3
with:
features: bench
branchName: ${{ github.base_ref }}