Skip to content

Commit

Permalink
added basic rust lint and build check
Browse files Browse the repository at this point in the history
  • Loading branch information
DarshanAgarwal09 committed Jan 2, 2024
1 parent 8e7b48b commit 06e8a3a
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/basic_checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: 'basic_checks'
on:
pull_request:
branches:
- main
push:
branches:
- main

jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: check

fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

0 comments on commit 06e8a3a

Please sign in to comment.