diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 043da966e9c5f..1d0726bcfa6bd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,6 +56,32 @@ jobs: env: RUSTFLAGS: "-C debuginfo=0 -D warnings" + integration-tests: + strategy: + matrix: + os: [windows-latest, ubuntu-latest, macos-latest] + runs-on: ${{ matrix.os }} + timeout-minutes: 30 + steps: + - uses: actions/checkout@v4 + - uses: actions/cache@v4 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-build-stable-${{ hashFiles('**/Cargo.toml') }} + - uses: dtolnay/rust-toolchain@stable + - name: Install Linux dependencies + uses: ./.github/actions/install-linux-deps + - name: Build & run integration tests + # See tools/ci/src/main.rs for the commands this runs + run: cargo run -p ci -- integration-test + env: + RUSTFLAGS: "-C debuginfo=0 -D warnings" + ci: runs-on: ubuntu-latest timeout-minutes: 30 diff --git a/.github/workflows/weekly.yml b/.github/workflows/weekly.yml index 71b10e04e14f0..28fa307dcbaf8 100644 --- a/.github/workflows/weekly.yml +++ b/.github/workflows/weekly.yml @@ -52,6 +52,25 @@ jobs: env: RUSTFLAGS: "-C debuginfo=0 -D warnings" + integration-tests: + strategy: + matrix: + os: [windows-latest, ubuntu-latest, macos-latest] + runs-on: ${{ matrix.os }} + # Disable this job when running on a fork. + if: github.repository == 'bevyengine/bevy' + timeout-minutes: 30 + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@beta + - name: Install Linux dependencies + uses: ./.github/actions/install-linux-deps + - name: Build & run integration tests + # See tools/ci/src/main.rs for the commands this runs + run: cargo run -p ci -- integration-test + env: + RUSTFLAGS: "-C debuginfo=0 -D warnings" + lint: runs-on: ubuntu-latest # Disable this job when running on a fork.