-
-
Notifications
You must be signed in to change notification settings - Fork 31
45 lines (38 loc) · 971 Bytes
/
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
name: Unit tests
on:
push:
branches:
- master
- dev*
pull_request:
branches:
- master
- dev*
jobs:
build:
strategy:
matrix:
os: [windows-latest]
haxe: [4.2.4]
fail-fast: true
runs-on: windows-latest
steps:
# Checkout & install haxe
- uses: actions/checkout@v2
- uses: krdlab/setup-haxe@v1
with:
haxe-version: ${{ matrix.haxe }}
- run: haxe -version
# Install libs
- run: haxelib install tests/js.hxml --always
- run: haxelib git deepnightLibs https://github.com/deepnight/deepnightLibs.git
- run: haxelib git heaps https://github.com/deepnight/heaps.git
- run: haxelib install hlsdl
- run: haxelib list
# Run tests
- name: JS tests
run: haxe tests/js.hxml
# Samples
- name: Samples building
working-directory: ./samples/_initSamples
run: haxe initSamples.hxml