-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1.02 KB
/
pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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