From ef0b4e6caffaf1881da1c5edc02cc709c5c72fa4 Mon Sep 17 00:00:00 2001 From: Andreas Grois Date: Mon, 3 Apr 2023 18:35:50 +0200 Subject: Set up Workflows --- .github/workflows/rust.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/rust.yml (limited to '.github/workflows') diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..57c5d46 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,36 @@ +name: Rust + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Build + run: cargo build --verbose + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Run tests + run: cargo test --verbose + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Clippy + run: cargo clippy + - name: Clippy for Tests + run: cargo clippy --tests + - name: Clippy for Examples + run: cargo clippy --examples -- cgit v1.2.3