Skip to content

Move steps to local action #798

Move steps to local action

Move steps to local action #798

Workflow file for this run

name: CI
on:
pull_request:
push:
jobs:
test:
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: ./.github/actions/prepare/
- name: Build & run tests
run: cargo test -p bevy_asset_loader
- name: Build & run tests for derive package
run: cargo test -p bevy_asset_loader_derive
test-2d-3d-dynamic:
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: ./.github/actions/prepare/
- name: Build & run tests for 2d, 3d, standard
run: cargo test --features "2d, 3d, standard_dynamic_assets" -p bevy_asset_loader
- name: Build & run tests for derive package
run: cargo test --features "2d, 3d" -p bevy_asset_loader_derive
progress-tracking-test:
strategy:
matrix:
os: [ windows-latest, ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: ./.github/actions/prepare/
- name: Build & run tests progress tracking
run: cargo test --features "progress_tracking" -p bevy_asset_loader
full-test:
strategy:
matrix:
os: [ windows-latest, ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: ./.github/actions/prepare/
- name: Build & run tests progress tracking and 2d,3d,dynamic
run: cargo test --features "2d, 3d, standard_dynamic_assets, progress_tracking" -p bevy_asset_loader
lint:
runs-on: ubuntu-latest
steps:
- uses: ./.github/actions/prepare/
- uses: ./actions/prepare_runner
- uses: taiki-e/install-action@v2
with:
tool: cargo-hack
- name: Run clippy
run: cargo clippy --workspace --all-targets --all-features -- -W clippy::doc_markdown -Dwarnings
- name: Check all feature combinations
run: cargo hack check --feature-powerset
- name: Check format
run: cargo fmt --all -- --check