From 4a45692f137b54077a7e50f6e2c3e22b7922a0fb Mon Sep 17 00:00:00 2001 From: Dom Rodriguez Date: Sun, 29 Aug 2021 19:01:59 +0100 Subject: [PATCH] Add CI builds support This uses GitHub Actions, it builds listenbrainz-rs and runs unit tests if applicable. It is triggered by the following GitHub events: - A push to the repo - A PR made to the repo Of course, it's not strictly necssary to use GitHub Actions; there are other services. Signed-off-by: Dom Rodriguez --- .github/workflows/ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..f62d3ea --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,19 @@ +name: CI builder + +on: [push, pull_request] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + name: CI builder for listenbrainz-rs + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Perform build of listenbrainz-rs + run: cargo build --verbose + - name: Run unit tests for listenbrain-rs + run: cargo test --verbose