From 431dca3b8a128d24dc8c80d50e778e82c7e7fe9b Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Mon, 27 Feb 2023 22:51:26 +0100 Subject: Add gh action for tests and rustdoc --- .github/workflows/tests.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/tests.yml (limited to '.github/workflows/tests.yml') diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..c98d2fb --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,28 @@ +name: tests + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Build + run: cargo build --verbose + + - name: Build examples + run: cargo build --verbose --examples + + - name: Check fmt + run: cargo fmt --check + + - name: Run tests + run: cargo test --verbose -- cgit v1.2.3