Skip to content

Merge pull request #226 from Screenly/fix-ci-checks #553

Merge pull request #226 from Screenly/fix-ci-checks

Merge pull request #226 from Screenly/fix-ci-checks #553

Workflow file for this run

name: Lint
on:
push:
paths:
- 'src/**'
- 'Cargo.toml'
jobs:
lint:
name: Lint code base
runs-on: ubuntu-latest
permissions:
contents: 'read'
checks: 'write'
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: rust-clippy-check
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-targets --all-features -- -D warnings
- name: rust-fmt-check
uses: actions-rust-lang/rustfmt@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}