Skip to content

Add missing dependencies and remove duplicate .gitignore #46

Add missing dependencies and remove duplicate .gitignore

Add missing dependencies and remove duplicate .gitignore #46

Workflow file for this run

name: Formatter
on:
push:
branches: [master]
pull_request:
branches: [master]
permissions:
contents: write # for checkout
pull-requests: write # for comments
jobs:
format:
name: Format apply
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Automatically apply lint suggestions
uses: actions-rs/cargo@v1
with:
command: clippy
args: --fix --workspace
- name: Format check packages
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Apply formatting changes
branch: ${{ github.head_ref }}
check:
name: Format check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Run clippy check on workspace
uses: actions-rs/cargo@v1
with:
command: clippy
args: --workspace
- name: Format all packages
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all