-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (31 loc) · 893 Bytes
/
tests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Crate tests
on:
pull_request:
branches:
- master
- development
jobs:
tests:
name: Tests
runs-on: ubuntu-20.04
env:
GODOT_BASE_URL: http://downloads.tuxfamily.org/godotengine/4.2
GODOT_BINARY: Godot_v4.2-stable_linux.x86_64
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Run Rust tests
run: cargo test
- name: Download Godot
shell: bash
run: |
curl $GODOT_BASE_URL/$GODOT_BINARY.zip >> godot.zip
unzip godot.zip && rm godot.zip && chmod +x $GODOT_BINARY
- name: Build tests crate
shell: bash
run: cargo build -p tests
- name: Run Godot integration tests
shell: bash
run: ./$GODOT_BINARY --path tests/godot --headless