Skip to content

Commit

Permalink
test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
MahadMuhammad committed Jul 14, 2024
1 parent 65ad202 commit 617d12e
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Rust Test to DejaGnu -- Build & Test

on:
push:
pull_request:

env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full

jobs:
build_and_test:
name: Rust Test to DejaGnu
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
# Only test on rust stable version
- stable

steps:
- name: install rustup
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup-init.sh
sh rustup-init.sh -y --default-toolchain none
rustup target add ${{ matrix.toolchain }}
- name: Checkout sources
uses: actions/checkout@v4

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

- name: Cargo Test
run: cargo test --verbose

- name: Cargo fmt
run: cargo fmt --all --check

- name: Clippy check
run: cargo clippy --all-targets --all-features
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use anyhow::Result;
use clap::Parser;
use std::{fs, path, process};
use std::{fs, path};

#[derive(Parser)]
struct Cli {
Expand Down

0 comments on commit 617d12e

Please sign in to comment.