forked from openfl/openfl
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate from travis to github actions
- Loading branch information
Showing
14 changed files
with
108 additions
and
15 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
pull_request: | ||
branches: [ develop ] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
continue-on-error: ${{ matrix.haxe-version == 'nightly' }} | ||
strategy: | ||
matrix: | ||
haxe-version: | ||
- 4.2.5 | ||
- nightly | ||
|
||
steps: | ||
- name: Check out repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
|
||
- name: Cache Yarn | ||
uses: actions/cache@v1 | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: Cache Haxe | ||
uses: actions/cache@v1 | ||
with: | ||
path: ${{ startsWith(runner.os, 'windows') && '%AppData%' || '~/haxe' }} | ||
key: ${{ runner.os }}-haxe | ||
|
||
- name: Install Lix | ||
uses: lix-pm/setup-lix@master | ||
|
||
- name: Install Haxe | ||
run: lix install haxe ${{ matrix.haxe-version }} | ||
|
||
- name: Install Haxe Libraries | ||
run: lix download | ||
|
||
- name: Build everything | ||
run: haxe build.hxml | ||
|
||
- name: Run Tests | ||
run: lix run travix node tests-html5.hxml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
/playground.js.map | ||
/node_modules | ||
/package-lock.json | ||
/bin |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# @install: lix --silent download "gh://github.com/haxefoundation/hxnodejs#e37e79fce8a2a2177a0a73ce9d8eff2acdbcfa8b" into hxnodejs/12.1.0/github/e37e79fce8a2a2177a0a73ce9d8eff2acdbcfa8b | ||
-cp ${HAXE_LIBCACHE}/hxnodejs/12.1.0/github/e37e79fce8a2a2177a0a73ce9d8eff2acdbcfa8b/src | ||
-D hxnodejs=12.1.0 | ||
--macro allowPackage('sys') | ||
# should behave like other target defines and not be defined in macro context | ||
--macro define('nodejs') | ||
--macro _internal.SuppressDeprecated.run() |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-cp ${SCOPE_DIR}/./src | ||
-D openfl=7.1.1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# @install: lix --silent download "haxelib:/tink_chunk#0.4.0" into tink_chunk/0.4.0/haxelib | ||
-cp ${HAXE_LIBCACHE}/tink_chunk/0.4.0/haxelib/src | ||
-D tink_chunk=0.4.0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# @install: lix --silent download "haxelib:/tink_cli#0.5.1" into tink_cli/0.5.1/haxelib | ||
-lib tink_io | ||
-lib tink_macro | ||
-lib tink_stringly | ||
-cp ${HAXE_LIBCACHE}/tink_cli/0.5.1/haxelib/src | ||
-D tink_cli=0.5.1 | ||
# Make sure docs are generated | ||
-D use-rtti-doc |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# @install: lix --silent download "haxelib:/tink_core#2.0.2" into tink_core/2.0.2/haxelib | ||
-cp ${HAXE_LIBCACHE}/tink_core/2.0.2/haxelib/src | ||
-D tink_core=2.0.2 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# @install: lix --silent download "haxelib:/tink_io#0.9.0" into tink_io/0.9.0/haxelib | ||
-lib tink_chunk | ||
-lib tink_streams | ||
-cp ${HAXE_LIBCACHE}/tink_io/0.9.0/haxelib/src | ||
-D tink_io=0.9.0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# @install: lix --silent download "haxelib:/tink_macro#1.0.0" into tink_macro/1.0.0/haxelib | ||
-lib tink_core | ||
-cp ${HAXE_LIBCACHE}/tink_macro/1.0.0/haxelib/src | ||
-D tink_macro=1.0.0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# @install: lix --silent download "haxelib:/tink_streams#0.4.0" into tink_streams/0.4.0/haxelib | ||
-lib tink_core | ||
-cp ${HAXE_LIBCACHE}/tink_streams/0.4.0/haxelib/src | ||
-D tink_streams=0.4.0 | ||
# temp for development, delete this file when pure branch merged | ||
-D pure |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# @install: lix --silent download "haxelib:/tink_stringly#0.5.0" into tink_stringly/0.5.0/haxelib | ||
-lib tink_core | ||
-cp ${HAXE_LIBCACHE}/tink_stringly/0.5.0/haxelib/src | ||
-D tink_stringly=0.5.0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# @install: lix --silent download "haxelib:/travix#0.15.3" into travix/0.15.3/haxelib | ||
# @post-install: cd ${HAXE_LIBCACHE}/travix/0.15.3/haxelib && haxe -cp src --run travix.PostDownload | ||
# @run: haxelib run-dir travix "${HAXE_LIBCACHE}/travix/0.15.3/haxelib" | ||
-lib tink_cli | ||
-cp ${HAXE_LIBCACHE}/travix/0.15.3/haxelib/src | ||
-D travix=0.15.3 | ||
--macro travix.Macro.setup() |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# @install: lix --silent download "gh://github.com/haxe-utest/utest#5de48a964ca75c8e6321ac9706346a24958af2a4" into utest/1.13.2/github/5de48a964ca75c8e6321ac9706346a24958af2a4 | ||
-cp ${HAXE_LIBCACHE}/utest/1.13.2/github/5de48a964ca75c8e6321ac9706346a24958af2a4/src | ||
-D utest=1.13.2 | ||
--macro utest.utils.Macro.checkHaxe() | ||
--macro utest.utils.Macro.importEnvSettings() |