Skip to content

New playground_lib crate #132

New playground_lib crate

New playground_lib crate #132

Workflow file for this run

name: Compile Api CI
on:
push:
branches: [main]
paths:
- 'compile_api/**'
- '.github/workflows/bevy-compile-api-ci.yml'
pull_request:
branches: [main]
paths:
- 'compile_api/**'
- '.github/workflows/bevy-compile-api-ci.yml'
env:
CARGO_TERM_COLOR: always
jobs:
# Run cargo test
test:
name: Runs Tests
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Cache
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-test-${{ hashFiles('compile_api/Cargo.toml') }}
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
- name: Run cargo test
working-directory: compile_api
run: cargo test
# Run cargo clippy -- -D warnings
clippy_check:
name: Check Clippy
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Cache
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-clippy-${{ hashFiles('compile_api/Cargo.toml') }}
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Run clippy
working-directory: compile_api
run: cargo clippy -- -D warnings
# Run cargo fmt --all -- --check
format:
name: Check Formatting
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Run cargo fmt
working-directory: compile_api
run: cargo fmt --all -- --check