-
Notifications
You must be signed in to change notification settings - Fork 6
53 lines (45 loc) · 1.36 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
name: 🚥 Tests
on:
push:
jobs:
tests:
name: 🧪 Evaluate Tests on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
# Don't cancel other OS runners if one fails.
fail-fast: false
matrix:
# Put the operating systems you want to run on here.
os: [ubuntu-latest]
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_NOLOGO: true
defaults:
run:
# Use bash shells on all platforms.
shell: bash
steps:
- name: 🧾 Checkout
uses: actions/checkout@v4
- name: 💽 Setup .NET SDK
uses: actions/setup-dotnet@v3
with:
global-json-file: global.json
- name: 📦 Restore Dependencies
run: dotnet restore
- name: 🤖 Setup Godot
uses: chickensoft-games/setup-godot@v2
with:
version: global.json
- name: 🔬 Verify Setup
run: |
dotnet --version
godot --version
- name: 🧑🔬 Generate .NET Bindings
working-directory: Chickensoft.GoDotCollections.Tests
run: godot --headless --build-solutions --quit || exit 0
- name: 🦺 Build Projects
run: dotnet build # --configuration Release
- name: 🧪 Run Tests
working-directory: Chickensoft.GoDotCollections.Tests
run: godot --headless --run-tests --quit-on-finish