From e37b6d47cceca0f40adb9133ad10fce14ec59891 Mon Sep 17 00:00:00 2001 From: cocool97 <34218602+cocool97@users.noreply.github.com> Date: Fri, 11 Oct 2024 15:33:00 +0200 Subject: [PATCH] feat: add github actions (#39) --- .github/workflows/rust-build.yml | 15 ++++++++++++++ .github/workflows/rust-quality.yml | 32 ++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 .github/workflows/rust-build.yml create mode 100644 .github/workflows/rust-quality.yml diff --git a/.github/workflows/rust-build.yml b/.github/workflows/rust-build.yml new file mode 100644 index 0000000..5be9de5 --- /dev/null +++ b/.github/workflows/rust-build.yml @@ -0,0 +1,15 @@ +name: Rust - Build + +on: [push] + +env: + CARGO_TERM_COLOR: always + +jobs: + build-release: + name: "build-release" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Build project + run: cargo build --release \ No newline at end of file diff --git a/.github/workflows/rust-quality.yml b/.github/workflows/rust-quality.yml new file mode 100644 index 0000000..01fd631 --- /dev/null +++ b/.github/workflows/rust-quality.yml @@ -0,0 +1,32 @@ +name: Rust - Quality + +on: [push] + +env: + CARGO_TERM_COLOR: always + +jobs: + clippy: + name: "clippy" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: rustup component add clippy + - name: Run clippy + run : cargo clippy + + fmt: + name: "fmt" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Run formatter + run : cargo fmt + + tests: + name: "tests" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Run tests + run: cargo test --verbose \ No newline at end of file