feat: unit tests and project refactor #5
Workflow file for this run
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: 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 test-workflow | |
- name: Upload WASM module to GitHub | |
uses: actions/upload-artifact@v2 | |
with: | |
name: msfs_navdata_interface.wasm | |
path: ./out/msfs_navdata_interface.wasm |