Skip to content

Commit

Permalink
Merge pull request #210 from chainwayxyz/ceyhun/ci-code-check
Browse files Browse the repository at this point in the history
Add code check for CI.
  • Loading branch information
ceyhunsen authored Aug 13, 2024
2 parents d861936 + 4a28dc8 commit 2a45cbe
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 2a45cbe

Please sign in to comment.