Merge pull request #44 from tong/update-default-haxe-version #173
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions | |
name: CI | |
on: | |
push: | |
branches: # build all branches | |
- '**' | |
tags-ignore: # but don't build tags | |
- '**' | |
paths-ignore: | |
- '**/*.md' | |
- '.github/*.yml' | |
pull_request: | |
workflow_dispatch: | |
# https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/ | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- macos-latest | |
- ubuntu-latest | |
- windows-latest | |
haxe: | |
- latest | |
- 4.3.4 | |
- 3.4.7 | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@v4 #https://github.com/actions/checkout | |
- run: | | |
npm ci | |
npm run test | |
- name: Install Haxe ${{ matrix.haxe }} | |
uses: ./ | |
with: | |
haxe-version: ${{ matrix.haxe }} | |
# install twice to verify re-installation works | |
- name: Install Haxe ${{ matrix.haxe }} | |
uses: ./ | |
with: | |
haxe-version: ${{ matrix.haxe }} | |
cache-dependency-path: 'test-workflow/lib.hxml' | |
- run: haxe -version | |
- run: haxelib install test-workflow/lib.hxml --always | |
- name: Compile test code | |
run: | | |
haxe \ | |
-cp test-workflow \ | |
-lib hxnodejs \ | |
-main Main \ | |
-js test-workflow.js |