polyglot-javascript-java-r #63
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
name: polyglot-javascript-java-r | |
on: | |
push: | |
paths: | |
- 'polyglot-javascript-java-r/**' | |
- '.github/workflows/polyglot-javascript-java-r.yml' | |
pull_request: | |
paths: | |
- 'polyglot-javascript-java-r/**' | |
- '.github/workflows/polyglot-javascript-java-r.yml' | |
schedule: | |
- cron: "0 0 1 * *" # run every month | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
run: | |
name: Run 'polyglot-javascript-java-r' | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
strategy: | |
matrix: | |
include: | |
- version: '22.3.0' # temporarily locked to 22.3.0 due to R | |
java-version: '17' | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: graalvm/setup-graalvm@v1 | |
with: | |
version: ${{ matrix.version }} | |
java-version: ${{ matrix.java-version }} | |
components: 'nodejs,R' | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run 'polyglot-javascript-java-r' | |
run: | | |
cd polyglot-javascript-java-r | |
npm install | |
$GRAALVM_HOME/bin/node --jvm --polyglot server.js & | |
sleep 10 | |
curl http://localhost:3000/ |