Moving wasm tests to wasm branch until it's stable #44
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: Rust | |
on: | |
push: | |
branches: [ "*" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: cargo build --verbose | |
- name: Run bevy-butler tests | |
run: cargo test --verbose | |
build-nightly: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@nightly | |
- name: Build | |
run: cargo +nightly build --features nightly --verbose | |
- name: Run bevy-butler tests | |
run: cargo +nightly test --features nightly --verbose | |
build-inventory: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: cargo build --features inventory --verbose | |
- name: Run bevy-butler tests | |
run: cargo test --features inventory --verbose | |
build-inventory-nightly: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@nightly | |
- name: Build | |
run: cargo +nightly build --features inventory,nightly --verbose | |
- name: Run bevy-butler tests | |
run: cargo +nightly test --features inventory,nightly --verbose | |
build-wasm: | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/wasm' | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: jetli/wasm-pack-action@v0.4.0 | |
with: | |
version: 'latest' | |
- name: Run bevy-butler tests | |
run: wasm-pack test --node --features inventory --verbose |