Skip to content

Commit

Permalink
workflow: Add new code check for CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
ceyhunsen committed Aug 9, 2024
1 parent d861936 commit 4a28dc8
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/code_checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Code Checks

on: [push]

env:
CARGO_TERM_COLOR: always

jobs:
formatting:
name: Check formatting
runs-on: ubicloud-standard-4

steps:
- uses: actions/checkout@v4
- name: Run Cargo fmt
run: cargo fmt --check

linting:
name: Check linting
runs-on: ubicloud-standard-4

steps:
- uses: actions/checkout@v4
- name: Run Cargo clippy
run: cargo clippy --no-deps -- -Dwarnings

0 comments on commit 4a28dc8

Please sign in to comment.