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 98cc497
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 28 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
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: |
haxelib newrepo
haxelib install munit
haxelib install hxnodejs
haxelib git tink_hxx https://github.com/kLabz/tink_hxx.git
haxelib git tink_anon https://github.com/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 98cc497

Please sign in to comment.