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

Commit

Permalink
Merge pull request #7 from Gobidev/ci
Browse files Browse the repository at this point in the history
Add `cargo clippy` and `cargo fmt` to workflow
  • Loading branch information
the-codeboy authored Mar 8, 2024
2 parents d812a96 + 0aa3aee commit c362171
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 c362171

Please sign in to comment.