Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Add cargo clippy and cargo fmt to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Gobidev committed Mar 8, 2024
1 parent cedfa30 commit f13ae50
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@ name: Rust

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Check formatting
run: cargo fmt -- --check
- name: Build
run: cargo build --verbose
run: cargo build
- name: Run clippy
run: cargo clippy -- -D clippy::all --no-deps
- name: Run tests
run: cargo test --verbose
run: cargo test

0 comments on commit f13ae50

Please sign in to comment.