Update pulldown-cmark requirement from 0.9 to 0.10 #42
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Linters | |
on: [ push, workflow_dispatch ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
lint: | |
name: Lint & Format | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
components: rustfmt, clippy | |
override: true | |
- name: Cache Cargo | |
uses: Swatinem/[email protected] | |
- name: Lint | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fix | |
args: --all-features | |
- name: Format | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
- name: Upload formatting and lint fixes | |
run: | | |
if [ -n "$(git status --porcelain)" ] | |
then | |
git config user.name "Upload lint fixes from CI" | |
git config user.email "" | |
git add . | |
git commit -m "Automically fix lint failures and format code." | |
git push | |
fi |