Merge #23 #67
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [master, staging, trying, release-*] | |
pull_request: | |
branches: [master, release-*] | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: | |
- 1.67.1 | |
steps: | |
- uses: actions/[email protected] | |
- uses: swatinem/rust-cache@v2 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust }} | |
- run: cargo check --all-features | |
test: | |
needs: [check] | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: | |
- 1.67.1 | |
steps: | |
- uses: actions/[email protected] | |
- uses: swatinem/rust-cache@v2 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust }} | |
- run: cargo test --all-features | |
clippy: | |
needs: [check] | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: | |
- 1.67.1 | |
steps: | |
- uses: actions/[email protected] | |
- uses: swatinem/rust-cache@v2 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust }} | |
components: clippy | |
- run: cargo clippy --all-features | |
fmt: | |
name: Formatting | |
needs: [check] | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: | |
- 1.67.1 | |
steps: | |
- uses: actions/[email protected] | |
- uses: swatinem/rust-cache@v2 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust }} | |
components: rustfmt | |
- run: cargo fmt --all -- --check | |
# We need some "accummulation" job here because bors fails (timeouts) to | |
# listen on matrix builds. | |
# Hence, we have some kind of dummy here that bors can listen on | |
ci-success: | |
name: CI | |
if: ${{ success() }} | |
runs-on: ubuntu-latest | |
needs: | |
- check | |
- test | |
- clippy | |
- fmt | |
steps: | |
- name: CI succeeded | |
run: exit 0 |