From 155a6879705c8c12ed2689d658308a7007a3012c Mon Sep 17 00:00:00 2001 From: Nicholas Rodrigues Lordello Date: Sun, 25 Jun 2023 21:05:42 +0200 Subject: [PATCH] Add CI; It Was Long Overdue --- .github/workflows/rust.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/rust.yml diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..1ecd63e --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,25 @@ +name: Rust + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + CARGO_TERM_COLOR: always + RUSTFLAGS: "-Dwarnings" + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Lint + run: | + cargo fmt --check + cargo clippy + - name: Tests + run: cargo test