Skip to content

Commit

Permalink
Create rust.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
demtario authored Mar 26, 2024
1 parent a8decf5 commit d4f56ce
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Rust

on: [push, pull_request]

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose

style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Add rustfmt
run: rustup component add rustfmt
- name: Run check
run: cargo fmt -- --check

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Add clippy
run: rustup component add clippy
- name: Run linter
run: cargo clippy -- -D warnings

0 comments on commit d4f56ce

Please sign in to comment.