Maintanence/gdext update #77
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: Crate tests | |
on: | |
pull_request: | |
branches: | |
- master | |
- development | |
workflow_dispatch: | |
jobs: | |
rust-test: | |
name: Cargo tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Rust toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: Cargo test | |
uses: nick-fields/retry@v2 | |
with: | |
timeout_minutes: 5 | |
max_attempts: 3 | |
command: cargo test | |
debug-test: | |
name: Rust-Godot integration tests on debug build | |
needs: rust-test | |
uses: ./.github/workflows/reusable_tests.yaml | |
with: | |
godot-version: 4.2.2 | |
release: false | |
release-test: | |
name: Rust-Godot integration tests on release build | |
needs: debug-test | |
if: github.base_ref == 'master' || github.ref_name == 'master' | |
uses: ./.github/workflows/reusable_tests.yaml | |
with: | |
godot-version: 4.2.2 | |
release: true | |