From bff4cd3b99c1f10cfa7f1503c2f522a286b95421 Mon Sep 17 00:00:00 2001 From: Nicolas Meienberger Date: Tue, 23 Jan 2024 21:30:40 +0100 Subject: [PATCH] ci: run tests and build on pull request --- .github/workflows/build.yml | 2 +- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 24bc598..836ef02 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -50,7 +50,7 @@ jobs: os: ubuntu-20.04 target: x86_64-unknown-linux-gnu bin: runtipi-cli - name: runtipi-cli-linux-x64 + name: runtipi-cli-linux-x86_64 command: build # - release_for: macOS-aarch64 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..20ef540 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +name: CI +on: + pull_request: + +jobs: + build: + name: Build and Test + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + profile: minimal + override: true + + - name: Build + run: cargo build --verbose + + - name: Run tests + run: cargo test --verbose