Skip to content

add CODEOWNERS file for automatic pull request assignment #271

add CODEOWNERS file for automatic pull request assignment

add CODEOWNERS file for automatic pull request assignment #271

name: Lint and Check
on:
push:
paths-ignore:
- '.gitignore'
- '.dockerignore'
- '.env.dist'
- '.github/dependabot.yml'
- '.github/workflows/release.yml'
- 'Dockerfile'
- 'LICENSE'
- 'README.md'
pull_request:
paths-ignore:
- '.gitignore'
- '.dockerignore'
- '.env.dist'
- '.github/dependabot.yml'
- '.github/workflows/release.yml'
- 'Dockerfile'
- 'LICENSE'
- 'README.md'
jobs:
check:
#strategy:
#matrix:
#include:
#- os: ubuntu-latest
#- os: macos-latest
#- os: windows-latest
#runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install nightly Rust
uses: dtolnay/rust-toolchain@master
with:
components: rustfmt,clippy
toolchain: nightly # we want to know if it breaks with the newest nightly
# toolchain: nightly-2024-02-17
- name: fmt
run: cargo fmt --check
- name: clippy
run: cargo clippy --no-deps --all-features
- name: check
run: cargo check
- name: Install stable Rust
uses: dtolnay/rust-toolchain@stable
- name: check on stable Rust
run: cargo check