Skip to content

feat: Created Github workflows (#3) #3

feat: Created Github workflows (#3)

feat: Created Github workflows (#3) #3

Workflow file for this run

name: Code Style
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
codestyle:
name: Code Style (fmt + clippy)
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
profile: minimal
components: rustfmt
- name: Check formatting
run: cargo fmt --all -- --check
- name: Check lints (cargo clippy)
run: cargo clippy -- -D warnings