Skip to content

Merge pull request #16 from gavinmorrow/dependabot/cargo/bevy_rapier2… #91

Merge pull request #16 from gavinmorrow/dependabot/cargo/bevy_rapier2…

Merge pull request #16 from gavinmorrow/dependabot/cargo/bevy_rapier2… #91

Workflow file for this run

# Source: <https://github.com/bevyengine/bevy_github_ci_template/blob/main/.github/workflows/ci.yaml> (<https://github.com/bevyengine/bevy_github_ci_template>)
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
# Run cargo test
# # FIXME: re-enable once we actually have tests
# # but if we don't have tests, its just really slowly doing nothing
# test:
# name: Test Suite
# runs-on: ubuntu-latest
# steps:
# - name: Checkout sources
# uses: actions/checkout@v3
# - name: Cache
# uses: actions/cache@v3
# with:
# path: |
# ~/.cargo/bin/
# ~/.cargo/registry/index/
# ~/.cargo/registry/cache/
# ~/.cargo/git/db/
# target/
# key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.toml') }}
# - name: Install stable toolchain
# uses: dtolnay/rust-toolchain@stable
# - name: Install Dependencies
# run: sudo apt-get update; sudo apt-get install pkg-config libx11-dev libasound2-dev libudev-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev
# - name: Run cargo test
# run: CARGO_HTTP_MULTIPLEXING=false cargo test
# Run cargo clippy -- -D warnings
clippy_check:
name: Clippy
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-clippy-${{ hashFiles('**/Cargo.toml') }}
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Install Dependencies
run: sudo apt-get update; sudo apt-get install pkg-config libx11-dev libasound2-dev libudev-dev
- name: Run clippy
run: CARGO_HTTP_MULTIPLEXING=false cargo clippy -- -D warnings
# Run cargo fmt --all -- --check
format:
name: Format
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Run cargo fmt
run: cargo fmt --all -- --check