Skip to content

Commit 5c67f41

Browse files
committed
workflow(test): is the preopens issue local
1 parent 51f2019 commit 5c67f41

File tree

4 files changed

+131
-87
lines changed

4 files changed

+131
-87
lines changed

.github/workflows/pr.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050

5151
build-test:
5252
name: Build & test 🛠️
53-
runs-on: ubuntu-latest
53+
runs-on: windows-2022
5454
if: ${{ !github.event.pull_request.draft && !contains(github.event.pull_request.labels.*.name , 'release') }}
5555
steps:
5656
- name: Checkout
@@ -60,15 +60,28 @@ jobs:
6060

6161
- name: Create env file
6262
run: |
63-
touch .env
6463
echo NAVIGATION_DATA_SIGNED_URL=${{ secrets.NAVIGATION_DATA_SIGNED_URL }} >> .env
6564
echo NAVIGATION_DATA_SIGNED_URL_V2=${{ secrets.NAVIGATION_DATA_SIGNED_URL_V2 }} >> .env
6665
66+
- name: Install LLVM and Clang
67+
uses: KyleMayes/[email protected]
68+
with:
69+
version: "17.0.6"
70+
71+
- name: Cache cargo-msfs
72+
uses: actions/cache@v4
73+
with:
74+
path: ~\.cargo\bin
75+
key: ${{ runner.os }}-cargo-msfs
76+
77+
- name: Setup
78+
run: npm run setup
79+
6780
- name: Build WASM module
6881
run: npm run build:wasm-workflow
6982

7083
- name: Test
71-
run: npm run test-workflow
84+
run: npm run test
7285

7386
- name: Upload WASM module to GitHub
7487
uses: actions/upload-artifact@v4

scripts/test.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ cd %~dp0
55
rmdir /s /q ..\test_work
66
mkdir ..\test_work
77

8+
:: Docker is a must for now, WASI preopens don't exist on windows.
89
call .\run_docker_cmd.bat npm run jest

0 commit comments

Comments
 (0)