-
Notifications
You must be signed in to change notification settings - Fork 7
39 lines (39 loc) · 1.03 KB
/
main.yaml
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
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: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
extensions: curl, intl, mbstring, simplexml
- 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