Skip to content

ci: Add allgreen job to signify overall workflow status #61

ci: Add allgreen job to signify overall workflow status

ci: Add allgreen job to signify overall workflow status #61

Workflow file for this run

on:
push:
branches-ignore:
- '*.tmp'
pull_request:
workflow_dispatch:
name: CI
env:
RUST_BACKTRACE: 1
jobs:
check:
name: cargo check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: check
args: --all-features
fmt:
name: cargo fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all --check
test:
name: cargo test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
lfs: 'true'
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: test
clippy:
name: cargo clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets -- -D warnings
# Job to key success status against
allgreen:
name: allgreen
if: always()
needs:
- check
- fmt
- test
- clippy
runs-on: ubuntu-latest
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}