Skip to content

Try to make the CI status more robust #30

Try to make the CI status more robust

Try to make the CI status more robust #30

Workflow file for this run

name: PR
on:
pull_request:
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
rust: [1.31.0, stable]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- run: cargo build
- run: ./ci/test_full.sh
fmt:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.62.0
with:
components: rustfmt
- run: cargo fmt --all --check
ci-status:
name: Complete
runs-on: ubuntu-latest
needs: [test, fmt]
if: always()
steps:
- if: ${{ success() }}
run: exit 0
- if: ${{ !success() }}
run: exit 1