Skip to content

Commit e5206be

Browse files
committed
migrate from travis to github actions
1 parent be3304c commit e5206be

14 files changed

Lines changed: 108 additions & 15 deletions

.github/workflows/ci.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
branches: [ develop ]
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
continue-on-error: ${{ matrix.haxe-version == 'nightly' }}
12+
strategy:
13+
matrix:
14+
haxe-version:
15+
- 4.2.5
16+
- nightly
17+
18+
steps:
19+
- name: Check out repo
20+
uses: actions/checkout@v2
21+
22+
- name: Get yarn cache directory path
23+
id: yarn-cache-dir-path
24+
run: echo "::set-output name=dir::$(yarn cache dir)"
25+
26+
- name: Cache Yarn
27+
uses: actions/cache@v1
28+
with:
29+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
30+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
31+
restore-keys: |
32+
${{ runner.os }}-yarn-
33+
34+
- name: Cache Haxe
35+
uses: actions/cache@v1
36+
with:
37+
path: ${{ startsWith(runner.os, 'windows') && '%AppData%' || '~/haxe' }}
38+
key: ${{ runner.os }}-haxe
39+
40+
- name: Install Lix
41+
uses: lix-pm/setup-lix@master
42+
43+
- name: Install Haxe
44+
run: lix install haxe ${{ matrix.haxe-version }}
45+
46+
- name: Install Haxe Libraries
47+
run: lix download
48+
49+
- name: Build everything
50+
run: haxe build.hxml
51+
52+
- name: Run Tests
53+
run: lix run travix node tests-html5.hxml

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
/playground.js.map
55
/node_modules
66
/package-lock.json
7+
/bin

.travis.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

haxe_libraries/hxnodejs.hxml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# @install: lix --silent download "gh://github.com/haxefoundation/hxnodejs#e37e79fce8a2a2177a0a73ce9d8eff2acdbcfa8b" into hxnodejs/12.1.0/github/e37e79fce8a2a2177a0a73ce9d8eff2acdbcfa8b
2+
-cp ${HAXE_LIBCACHE}/hxnodejs/12.1.0/github/e37e79fce8a2a2177a0a73ce9d8eff2acdbcfa8b/src
3+
-D hxnodejs=12.1.0
4+
--macro allowPackage('sys')
5+
# should behave like other target defines and not be defined in macro context
6+
--macro define('nodejs')
7+
--macro _internal.SuppressDeprecated.run()

haxe_libraries/openfl.hxml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-cp ${SCOPE_DIR}/./src
2+
-D openfl=7.1.1

haxe_libraries/tink_chunk.hxml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# @install: lix --silent download "haxelib:/tink_chunk#0.4.0" into tink_chunk/0.4.0/haxelib
2+
-cp ${HAXE_LIBCACHE}/tink_chunk/0.4.0/haxelib/src
3+
-D tink_chunk=0.4.0

haxe_libraries/tink_cli.hxml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# @install: lix --silent download "haxelib:/tink_cli#0.5.1" into tink_cli/0.5.1/haxelib
2+
-lib tink_io
3+
-lib tink_macro
4+
-lib tink_stringly
5+
-cp ${HAXE_LIBCACHE}/tink_cli/0.5.1/haxelib/src
6+
-D tink_cli=0.5.1
7+
# Make sure docs are generated
8+
-D use-rtti-doc

haxe_libraries/tink_core.hxml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# @install: lix --silent download "haxelib:/tink_core#2.0.2" into tink_core/2.0.2/haxelib
2+
-cp ${HAXE_LIBCACHE}/tink_core/2.0.2/haxelib/src
3+
-D tink_core=2.0.2

haxe_libraries/tink_io.hxml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# @install: lix --silent download "haxelib:/tink_io#0.9.0" into tink_io/0.9.0/haxelib
2+
-lib tink_chunk
3+
-lib tink_streams
4+
-cp ${HAXE_LIBCACHE}/tink_io/0.9.0/haxelib/src
5+
-D tink_io=0.9.0

haxe_libraries/tink_macro.hxml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# @install: lix --silent download "haxelib:/tink_macro#1.0.0" into tink_macro/1.0.0/haxelib
2+
-lib tink_core
3+
-cp ${HAXE_LIBCACHE}/tink_macro/1.0.0/haxelib/src
4+
-D tink_macro=1.0.0

0 commit comments

Comments
 (0)