From 5415e93d4e7f433560423e754df373514c9666ff Mon Sep 17 00:00:00 2001 From: max-ishere <47008271+max-ishere@users.noreply.github.com> Date: Sat, 27 Jan 2024 17:49:50 +0200 Subject: [PATCH] ci: Add build, test and lint jobs --- .github/workflows/cargo-test.yml | 20 --------------- .github/workflows/cargo.yml | 42 ++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 20 deletions(-) delete mode 100644 .github/workflows/cargo-test.yml create mode 100644 .github/workflows/cargo.yml diff --git a/.github/workflows/cargo-test.yml b/.github/workflows/cargo-test.yml deleted file mode 100644 index 5e499c9..0000000 --- a/.github/workflows/cargo-test.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Cargo test - -on: - push: - pull_request: - -env: - CARGO_TERM_COLOR: always - -jobs: - test: - name: Test - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: Build - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose diff --git a/.github/workflows/cargo.yml b/.github/workflows/cargo.yml new file mode 100644 index 0000000..20ea679 --- /dev/null +++ b/.github/workflows/cargo.yml @@ -0,0 +1,42 @@ +name: Check project with cargo tooling + +on: + push: + pull_request: + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + name: Build + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: build + run: cargo build --release --all-targets --keep-going --verbose + + test: + name: Test + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: test + run: cargo test --no-fail-fast --all-targets --verbose + + - name: test docs + run: cargo test --no-fail-fast --doc --verbose + + lint: + name: Lint + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: check + run: cargo clippy --no-deps --all-targets --verbose