Skip to content

handle pkgx rename

handle pkgx rename #41

# https://github.com/BamPeers/rust-ci-github-actions-workflow
on:
pull_request:
push:
branches:
- main
name: Check and Lint
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- uses: actions-rs/cargo@v1
with:
command: check
env:
RUSTFLAGS: "-D warnings"
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: clippy
override: true
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-features
env:
RUSTFLAGS: "-D warnings"
markdownlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: nosborn/github-action-markdown-cli@v3.2.0
with:
files: .