Skip to content

Refactor graph package (addresses #166) #1146

Refactor graph package (addresses #166)

Refactor graph package (addresses #166) #1146

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
# Also allow running this workflow manually from the Actions tab.
workflow_dispatch:
jobs:
jest:
runs-on: ubuntu-latest
steps:
- name: Check out reactor-ts repository
uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 18
- name: Run the type checker and then run the tests
run: |
npm install
npm run build
npm run test
lingua-franca:
runs-on: ubuntu-latest
steps:
- name: Read lingua-franca-ref.txt
run: echo "lingua-franca-ref=$(wget -qO- https://raw.githubusercontent.com/lf-lang/reactor-ts/${{ github.head_ref || github.ref_name }}/lingua-franca-ref.txt)" >> $GITHUB_ENV
- name: Check out lingua-franca repository
uses: actions/checkout@v3
with:
repository: lf-lang/lingua-franca
ref: ${{ env.lingua-franca-ref }}
fetch-depth: 0
submodules: true
- name: Prepare build environment
uses: ./.github/actions/prepare-build-env
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install pnpm
run: npm i -g pnpm
- name: Install RTI
uses: ./.github/actions/install-rti
if: ${{ runner.os == 'macOS' || runner.os == 'Linux' }}
- name: Perform Lingua Franca TypeScript tests
run: |
./gradlew targetTest -Ptarget=TypeScript -Druntime="git://github.com/lf-lang/reactor-ts.git#${{ github.head_ref || github.ref_name }}"