mirror of
https://codeberg.org/JasterV/event_bus.rs.git
synced 2026-04-26 18:10:02 +00:00
46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
concurrency:
|
|
group: ci-${{ github.head_ref || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- run: rustup default 1.91.1
|
|
- run: rustup component add clippy rustfmt
|
|
- uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # ratchet:Swatinem/rust-cache@v2
|
|
- uses: taiki-e/install-action@cargo-make
|
|
- uses: taiki-e/install-action@cargo-deny
|
|
- run: cargo make -p ci fmt-check
|
|
- run: cargo make -p ci clippy
|
|
- run: cargo make -p ci deny-check
|
|
- run: cargo make -p ci docs
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- run: rustup default 1.91.1
|
|
- uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # ratchet:Swatinem/rust-cache@v2
|
|
- uses: taiki-e/install-action@cargo-make
|
|
- run: cargo make -p ci test
|
|
|
|
alls-green:
|
|
if: always()
|
|
runs-on: ubuntu-latest
|
|
needs:
|
|
- lint
|
|
- test
|
|
steps:
|
|
- run: ${{ !contains(needs.*.result, 'failure') }}
|