feat: Javascript interface and implementation of API based upon RFC 001 #33
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
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- ready_for_review | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "18" | |
- name: Fetch cached node_modules | |
uses: actions/cache@v3 | |
with: | |
path: "**/node_modules" | |
key: ${{ runner.os }}-modules-${{ hashFiles('package-lock.json') }} | |
- name: Install dependencies | |
run: npm ci | |
- name: Create env file | |
run: | | |
touch .env | |
echo NAVDATA_SIGNED_URL=${{ secrets.NAVDATA_SIGNED_URL }} >> .env | |
- name: Build WASM module | |
run: npm run build:wasm-workflow | |
- name: Test | |
run: npm run jest | |
- name: Upload WASM module to GitHub | |
uses: actions/upload-artifact@v2 | |
with: | |
name: msfs_navdata_interface.wasm | |
path: ./out/msfs_navdata_interface.wasm |