Skip to content

Add unit tests

Add unit tests #121

Workflow file for this run

# https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions
name: CI
on:
push:
paths-ignore:
- '**/*.md'
- '.vscode/*'
pull_request:
# workflow_dispatch:
# repository_dispatch:
# schedule:
# - cron: '0 4 * * *'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
haxe:
- latest
- 4.3.7
steps:
- name: Show environment variables
shell: bash
run: env | sort
- name: Git Checkout
uses: actions/checkout@v4
- name: "Cache Haxelib Repository"
uses: actions/cache@v2
with:
path: $RUNNER_TOOL_CACHE/haxe/${{ matrix.haxe }}/x64/lib
key: ${{ runner.os }}-haxelib-${{ hashFiles('**/haxelib.json') }}
restore-keys: |
${{ runner.os }}-haxelib-
- name: Install Haxe ${{ matrix.haxe }}
uses: krdlab/setup-haxe@v1 # https://github.com/krdlab/setup-haxe
with:
haxe-version: ${{ matrix.haxe }}
- name: Install haxe libs
shell: bash
id: prerequisites
run: |
haxelib git utest https://github.com/haxe-utest/utest.git
##################################################
# Tests
##################################################
- name: Build bare test
run: |
echo "Building baertest"
haxe tests/bare/test.hxml
- name: Build unit tests
run: |
echo "Building unit tests"
haxe tests/bare/test.hxml