forked from godot-go/godot-go
-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (65 loc) · 1.83 KB
/
test_windows.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Test Windows
on:
push:
paths:
- "**/*.go"
- "**/*.c"
- "**/*.h"
- ".github/workflows/test_windows.yaml"
workflow_dispatch:
jobs:
run_test:
strategy:
fail-fast: true
matrix:
go_version:
- 1.15.x
targets:
- windows/amd64
runs-on: windows-latest
steps:
- name: Set up scoop
run: |
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh');
echo "::add-path::$HOME\scoop\shims";
- name: Debug PATH
run: echo "$Env:Path"
- name: Set up scoop extras
run: scoop bucket add extras;
- name: Install packages
run: scoop install wget unzip
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go_version }}
stable: true
- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
submodules: true
- name: Install Godot 3.2.2 server
run: |
wget https://downloads.tuxfamily.org/godotengine/3.2.2/Godot_v3.2.2-stable_win64.exe.zip
unzip Godot_v3.2.2-stable_win64.exe.zip -d ./
shell: bash
- name: Get dependencies
run: go get -v -t -d ./...
shell: bash
- name: Build test
run: | # need to run this twice to get a useful error message on failure
go run mage.go -v buildtest || go run mage.go -v buildtest
shell: bash
env:
GODOT_BIN: ./Godot_v3.2.2-stable_win64.exe
- name: List Artifacts Directory
run: ls -alh test/libs
shell: bash
# - name: Run Test
# run: go run mage.go -v test
# shell: bash
# env:
# GODOT_BIN: ./Godot_v3.2.2-stable_win64.exe
# LOG_LEVEL: "trace"
# TEST_USE_GINKGO_WRITER: 1
# LANG: "en_US.utf8"
# CI: 1