From d46046da318817a80c1fff287d52f42143cf9b7a Mon Sep 17 00:00:00 2001 From: michaelangrivera Date: Sun, 5 Nov 2023 20:08:32 -0500 Subject: [PATCH] ci setup --- .github/workflows/ci.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 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..4c67993 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,31 @@ +name: Rust + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - name: Build + uses: actions-rs/cargo@v1 + with: + command: build + args: --verbose + - name: Run tests + uses: actions-rs/cargo@v1 + with: + command: test + args: --verbose