From 95ff1a6b00c01184dfa57e01ea274bbcdf40528e Mon Sep 17 00:00:00 2001 From: simonsan <14062932+simonsan@users.noreply.github.com> Date: Sun, 12 Nov 2023 19:47:54 +0100 Subject: [PATCH] ci: add results to ci Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com> --- .github/workflows/audit.yml | 14 ++++++++++++++ .github/workflows/ci.yml | 15 +++++++++++++++ .github/workflows/cross-ci.yml | 12 ++++++++++++ .github/workflows/lint-docs.yml | 13 +++++++++++++ 4 files changed, 54 insertions(+) diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index f3cf2a0..1765cc7 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -41,3 +41,17 @@ jobs: - uses: EmbarkStudios/cargo-deny-action@a50c7d5f86370e02fae8472c398f15a36e517bb8 # v1 with: command: check bans licenses sources + + result: + name: Result (Audit) + runs-on: ubuntu-latest + needs: + - audit + - cargo-deny + steps: + - name: Mark the job as successful + run: exit 0 + if: success() + - name: Mark the job as unsuccessful + run: exit 1 + if: "!success()" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a6e5f27..2d6762c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -82,3 +82,18 @@ jobs: with: command: test args: -r --all-targets --all-features --workspace + + result: + name: Result (CI) + runs-on: ubuntu-latest + needs: + - fmt + - clippy + - test + steps: + - name: Mark the job as successful + run: exit 0 + if: success() + - name: Mark the job as unsuccessful + run: exit 1 + if: "!success()" diff --git a/.github/workflows/cross-ci.yml b/.github/workflows/cross-ci.yml index dcc8394..63a53e5 100644 --- a/.github/workflows/cross-ci.yml +++ b/.github/workflows/cross-ci.yml @@ -88,3 +88,15 @@ jobs: toolchain: ${{ matrix.rust }} target: ${{ matrix.job.target }} use-cross: ${{ matrix.job.use-cross }} + + result: + name: Result (Cross-CI) + runs-on: ubuntu-latest + needs: cross-check + steps: + - name: Mark the job as successful + run: exit 0 + if: success() + - name: Mark the job as unsuccessful + run: exit 1 + if: "!success()" diff --git a/.github/workflows/lint-docs.yml b/.github/workflows/lint-docs.yml index b03b00f..f3694b6 100644 --- a/.github/workflows/lint-docs.yml +++ b/.github/workflows/lint-docs.yml @@ -14,3 +14,16 @@ jobs: - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 - uses: dprint/check@2f1cf31537886c3bfb05591c031f7744e48ba8a1 # v2.2 + + result: + name: Result (Style) + runs-on: ubuntu-latest + needs: + - style + steps: + - name: Mark the job as successful + run: exit 0 + if: success() + - name: Mark the job as unsuccessful + run: exit 1 + if: "!success()"