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