Skip to content

Fix the CI

Fix the CI #228

Workflow file for this run

name: main
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Fetch sources
uses: actions/checkout@v3
- name: Set up Lix
uses: lix-pm/setup-lix@master
- name: Set up Node.js
uses: actions/setup-node@v3
with:
cache: npm
node-version: 20
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
~/haxe
~/AppData/Roaming/haxe
key: haxe-${{runner.os}}-lix-${{hashFiles('.haxerc', 'haxe_libraries/*.hxml')}}
restore-keys: haxe-${{runner.os}}-lix-
- name: Install dependencies
run: |
lix download
npm ci
- name: Run tests
run: haxe test.hxml
- name: Collect code coverage
if: success()
uses: codecov/codecov-action@v3
with:
files: var/lcov.info
action:
runs-on: ${{matrix.platform}}
needs: test
strategy:
matrix:
platform: [macos-latest, ubuntu-latest, windows-latest]
steps:
- uses: cedx/setup-hashlink@main
- run: hl --version