Skip to content

Commit

Permalink
[ci] move to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kLabz committed Oct 14, 2023
1 parent 805c5b6 commit 2c24a8b
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 28 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Tests

on: [push, repository_dispatch]

jobs:
build:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
haxe: [4.3.2, latest]

steps:
- uses: actions/checkout@v1

- name: Setup haxe ${{ matrix.haxe }}
uses: krdlab/setup-haxe@v1
with:
haxe-version: ${{ matrix.haxe }}

- name: Install libs
run: |
git config --global url."https://github.com/".insteadOf "[email protected]:"
haxelib newrepo
haxelib install munit
haxelib install hxnodejs
haxelib git tink_hxx [email protected]:kLabz/tink_hxx.git
haxelib git tink_anon [email protected]:haxetink/tink_anon.git
# - name: Run tests
# run: |
# haxelib run munit test -js

- name: "[Samples] SSR sample : react-next docs website"
run: |
cd samples/docs
make setup
make server
make static
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

8 changes: 7 additions & 1 deletion samples/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,10 @@

TODO: add some documentation here, or in `docs` and link here.

Run `make setup` and then `make server` to start the server on port `8042`.
Run `make setup` to install dependencies.

Run `make server` to build and then `make start-server` to start the server on
port `8042`.

To generate static html pages instead, run `make static`, and then
`make serve-static` to start a http server serving html files on port `8043`.
3 changes: 3 additions & 0 deletions samples/docs/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ setup:
npm i

server:
haxe build.hxml

start-server:
node bin/server.js

static:
Expand Down

0 comments on commit 2c24a8b

Please sign in to comment.