From 3158e39c9ba5f336f7f5ea41488e64576fd8a90b Mon Sep 17 00:00:00 2001 From: Andrew Spoden Date: Wed, 19 Nov 2025 06:17:18 -0600 Subject: [PATCH] Added running of integration tests to 'ci' and 'weekly' workflows. --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ .github/workflows/weekly.yml | 19 +++++++++++++++++++ 2 files changed, 45 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 526ac4c4013de..e8ff5c2aa862b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,6 +48,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 b4ddffdb9dbb7..28d4b9543098f 100644 --- a/.github/workflows/weekly.yml +++ b/.github/workflows/weekly.yml @@ -49,6 +49,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.