Skip to content

Merge pull request #42 from krdlab/dependabot/github_actions/github/c… #168

Merge pull request #42 from krdlab/dependabot/github_actions/github/c…

Merge pull request #42 from krdlab/dependabot/github_actions/github/c… #168

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:
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.1
- 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