Skip to content

Commit

Permalink
Create GitHub Action Checks (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
ismet55555 authored Aug 1, 2023
1 parent 3e06b60 commit 87423bb
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Rust

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

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Formatting Check
run: cargo fmt -- --check

- name: Linting Check - Clippy
run: cargo clippy --all-targets --all-features

- name: Build Check
run: cargo build --verbose

# - name: Run tests
# run: cargo test --verbose
1 change: 0 additions & 1 deletion src/cli_args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,4 @@ pub struct CliArgs {
/// Dim text not highlighted
#[clap(short = 'd', long, required = false)]
pub dim: bool,

}
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
use color_eyre::eyre::Result;
use std::io::{self, Read};

mod cli_args;
mod bieye;
mod cli_args;

use cli_args::CliArgs;
use bieye::Bieye;
use clap::Parser;
use cli_args::CliArgs;

fn main() -> Result<()> {
color_eyre::install()?;
Expand Down

0 comments on commit 87423bb

Please sign in to comment.