Skip to content

Commit

Permalink
Use GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
aantron committed Dec 4, 2021
1 parent ffe995c commit d6cb786
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/test.yml
@@ -0,0 +1,43 @@
name: test
on: [push, pull_request]

jobs:
rescript:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm install
- run: npm run test
- run: bash test/bundle/size.sh
- run: |
pushd ..
git clone https://github.com/aantron/promise-example-bsb.git
cd promise-example-bsb
npm install
npm run test
popd
- run: |
pushd ..
git clone https://github.com/aantron/promise-example-binding.git
cd promise-example-binding
npm install
npm run test
popd
esy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npx esy install -P ./promise.opam
- run: npx esy -P ./promise.opam dune build test/test_main.exe
- run: npx esy -P ./promise.opam dune exec test/test_main.exe

opam:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: 4.12.x
- run: dune exec test/test_main.exe
- run: opam lint

0 comments on commit d6cb786

Please sign in to comment.