Skip to content

Merge pull request #99 from jfrimmel/run-ci-on-prs #108

Merge pull request #99 from jfrimmel/run-ci-on-prs

Merge pull request #99 from jfrimmel/run-ci-on-prs #108

Workflow file for this run

name: Style
on:
push:
pull_request:
defaults:
run:
shell: bash
jobs:
# Check correct formatting
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup update stable && rustup default stable
- run: rustup component add rustfmt
- name: Check formatting
run: cargo fmt --all -- --check
# Check for code issues
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup update stable && rustup default stable
- run: rustup component add clippy
- name: Run linter
run: cargo clippy --color=always -- -D warnings