From d85044a6862632a8f5b865d66a44a756572d9b49 Mon Sep 17 00:00:00 2001 From: "Scott G. Ainsworth" Date: Tue, 28 Dec 2021 09:52:08 -0500 Subject: [PATCH] Create build and test github action Issue #26 Signed-off-by: Scott G. Ainsworth --- ...tom-dictionary-folder-avahi-aliases-rs.txt | 2 ++ .github/workflows/rust.yml | 23 +++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 .github/workflows/rust.yml diff --git a/.cspell/custom-dictionary-folder-avahi-aliases-rs.txt b/.cspell/custom-dictionary-folder-avahi-aliases-rs.txt index d311d42..9fa60f0 100644 --- a/.cspell/custom-dictionary-folder-avahi-aliases-rs.txt +++ b/.cspell/custom-dictionary-folder-avahi-aliases-rs.txt @@ -12,8 +12,10 @@ HINFO idents IDNA INET +libdbus locl luarntlemercier +nocapture rdata repr RUSTDOCFLAGS diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..5032cf8 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,23 @@ +name: Rust + +on: + push: + pull_request: + branches: [ develop, main ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Install dependencies + run: sudo apt-get install --no-install-recommends -y libdbus-1-dev dbus at-spi2-core + - name: Check + run: cargo check --verbose --all + - name: Run tests + run: cargo test --all -- --nocapture --color always