-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (48 loc) · 1.75 KB
/
unittests.yml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Run Unit Tests
on:
push:
branches: [ "dev" ]
pull_request:
branches: [ "dev" ]
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Initialize submodules
run: git submodule update --init --recursive
- uses: actions/checkout@v4
- name: Build Glecs
run: |
cargo build --verbose \
--manifest-path \./addons/glecs/rust/glecs/Cargo.toml \
--features compile_bindings \
--target-dir ./addons/glecs/bin
- name: List Dir Pre
run:
ls
- uses: croconut/[email protected]
with:
# Your Godot version number e.g. 3.2.2
version: 4.2 # default is 3.2.2
# Test against mono version? Default: false
is-mono: false # optional, default is false
# Decimal value for minimum passing score e.g. if 88% of tests pass and minimum-pass is 0.8, then action passes.
#minimum-pass: 1.0 # optional, default is 0.99
# how long to spend importing assets before tests are run
# import-time: "5"
# how long tests can run in seconds
# test-timeout: "45"
# Directory containing Gut tests
test-dir: res://unittests # optional, default is res://test
# Maximum number of failing asserts or tests, if this or pass rate fails then the action will fail. Is not checked if you do not set it
#max-fails: 0 # optional, default is false
# Filename to store and read results in XML
result-output-file: unittest_log.xml # optional, default is test_results.
config-file: "res://.gut_editor_config.json"
- name: List Dir Post
run:
ls