From ed3eaa5bf214d75fa1c62f54d142ae270f8cd419 Mon Sep 17 00:00:00 2001 From: Yury Akudovich Date: Tue, 26 Sep 2023 14:09:39 +0200 Subject: [PATCH] Adds Rust CI. --- .github/workflows/ci.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..9405797 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,24 @@ +name: "Rust CI" +on: + pull_request: + +jobs: + build: + name: cargo build and test + runs-on: [ubuntu-latest] + steps: + - uses: actions/checkout@v3 + - uses: actions-rust-lang/setup-rust-toolchain@v1 + - run: cargo build --verbose + - run: cargo test --verbose --all + + formatting: + name: cargo fmt + runs-on: [ubuntu-latest] + steps: + - uses: actions/checkout@v3 + - uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + components: rustfmt + - name: Rustfmt Check + uses: actions-rust-lang/rustfmt@v1