-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the integration tests to their own Workflow since they fail so o…
…ften
- Loading branch information
1 parent
558b821
commit 966f227
Showing
2 changed files
with
79 additions
and
17 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
name: Integration | ||
|
||
permissions: | ||
contents: read | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
integration: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
rust: | ||
- stable | ||
- nightly | ||
- "1.80.0" | ||
platform: | ||
- ubuntu-latest | ||
- windows-latest | ||
- macos-latest | ||
features: | ||
# - "libei,wayland,xdo,x11rb" | ||
- "default" | ||
# - "libei" | ||
# - "wayland" | ||
- "xdo" | ||
- "x11rb" | ||
exclude: | ||
# - platform: windows-latest | ||
# features: "libei,wayland,xdo,x11rb" | ||
# - platform: windows-latest | ||
# features: "libei" | ||
# - platform: windows-latest | ||
# features: "wayland" | ||
- platform: windows-latest | ||
features: "xdo" | ||
- platform: windows-latest | ||
features: "x11rb" | ||
# - platform: macos-latest | ||
# features: "libei,wayland,xdo,x11rb" | ||
# - platform: macos-latest | ||
# features: "libei" | ||
# - platform: macos-latest | ||
# features: "wayland" | ||
- platform: macos-latest | ||
features: "xdo" | ||
- platform: macos-latest | ||
features: "x11rb" | ||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/install_deps | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: ${{ matrix.rust }} | ||
components: rustfmt, clippy | ||
|
||
- name: Setup headless display for tests on Linux | ||
if: runner.os == 'Linux' # This step is only needed on Linux. The other OSs don't need to be set up | ||
uses: ./.github/actions/headless_display | ||
|
||
- name: Run integration tests in release mode | ||
if: matrix.features != 'wayland' && matrix.features != 'libei' && matrix.features != 'libei,wayland,xdo,x11rb' # On Linux, the integration tests only work with X11 for now | ||
run: cargo test integration --release --no-default-features --features ${{ matrix.features }} -- --test-threads=1 --nocapture --include-ignored | ||
|
||
- name: Take screenshot | ||
if: always() && runner.os != 'macOS' | ||
uses: ./.github/actions/screenshot | ||
with: | ||
platform: ${{ matrix.platform }} | ||
rust: ${{ matrix.rust }} | ||
feature: ${{ matrix.features }} |