Skip to content

Commit

Permalink
github/workflows: Add workflow to build and test javascript port.
Browse files Browse the repository at this point in the history
Signed-off-by: Damien George <damien@micropython.org>
  • Loading branch information
dpgeorge committed Jun 24, 2021
1 parent 0094c3d commit 85c8267
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ports_javascript.yml
@@ -0,0 +1,24 @@
name: javascript port

on:
push:
pull_request:
paths:
- '.github/workflows/*.yml'
- 'tools/**'
- 'py/**'
- 'extmod/**'
- 'lib/**'
- 'ports/javascript/**'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install packages
run: source tools/ci.sh && ci_javascript_setup
- name: Build
run: source tools/ci.sh && ci_javascript_build
- name: Run tests
run: source tools/ci.sh && ci_javascript_run_tests
15 changes: 15 additions & 0 deletions tools/ci.sh
Expand Up @@ -138,6 +138,21 @@ function ci_esp8266_build {
make ${MAKEOPTS} -C ports/esp8266 BOARD=GENERIC_1M
}

########################################################################################
# ports/javascript

function ci_javascript_setup {
sudo apt-get install emscripten
}

function ci_javascript_build {
make ${MAKEOPTS} -C ports/javascript
}

function ci_javascript_run_tests {
(cd tests && MICROPY_MICROPYTHON=../ports/javascript/node_run.sh ./run-tests.py)
}

########################################################################################
# ports/mimxrt

Expand Down

0 comments on commit 85c8267

Please sign in to comment.