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 <shymega@shymega.org.uk>
This commit is contained in:
Dom Rodriguez 2021-08-29 19:01:59 +01:00
parent 8764854fad
commit 4a45692f13
No known key found for this signature in database
GPG Key ID: 72DCF1231E54BD43
1 changed files with 19 additions and 0 deletions

19
.github/workflows/ci.yml vendored Normal file
View File

@ -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