Skip to content

Remove Cargo.lock

Remove Cargo.lock #17

Workflow file for this run

name: Linter and Formatter
on:
pull_request:
branches:
- main
paths-ignore:
- 'README.md'
- 'scripts/**'
jobs:
format:
name: Checkout PR
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
run: gh pr checkout ${{ github.event.pull_request.number }}

Check failure on line 20 in .github/workflows/lint-fmt.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/lint-fmt.yml

Invalid workflow file

You have an error in your yaml syntax on line 20
- name: Push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: git push
fmt:
name: Rustfmt
env:
CARGO_INCREMENTAL: 0
CARGO_TERM_COLOR: always
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
clippy:
name: Clippy
env:
CARGO_INCREMENTAL: 0
CARGO_TERM_COLOR: always
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets -- -D warnings