Skip to content

Commit 1d28914

Browse files
Jake ChampionJakeChampion
authored andcommitted
debug
1 parent 72c52d2 commit 1d28914

File tree

7 files changed

+2343
-502
lines changed

7 files changed

+2343
-502
lines changed

.github/actions/compute-sdk-test/main.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// Node & 3P Modules
2-
import fs from 'fs';
32
import fsPromises from 'fs/promises';
4-
import path from 'path';
53
import childProcess from 'node:child_process';
64
import fetch from 'node-fetch';
75
import chalk from 'chalk';

.github/actions/e2e/action.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,22 @@ inputs:
1212
runs:
1313
using: "composite"
1414
steps:
15+
- uses: actions/setup-node@v3
16+
with:
17+
node-version: 18
1518
- name: Install Fastly CLI
1619
shell: bash
1720
run: |
1821
echo "Install Fastly CLI 3.1.1"
1922
wget https://github.com/fastly/cli/releases/download/v3.1.1/fastly_3.1.1_linux_amd64.deb
2023
sudo apt install ./fastly_3.1.1_linux_amd64.deb
21-
2224
- name: Download Engine
23-
uses: actions/download-artifact@v1
25+
uses: actions/download-artifact@v3
2426
with:
2527
name: engine-release
26-
- run: npm i
28+
- run: yarn
2729
shell: bash
28-
- run: cd ./integration-tests/js-compute && npm i
30+
- run: cd ./integration-tests/js-compute && yarn
2931
shell: bash
3032
- run: cd ./integration-tests/js-compute && ./test.js ${{ inputs.fixture }}
3133
shell: bash

.github/workflows/main.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,12 @@ jobs:
126126
- uses: actions/checkout@v2
127127
with:
128128
submodules: true
129+
- uses: actions/setup-node@v3
130+
with:
131+
node-version: 18
129132

130133
- name: Download Engine
131-
uses: actions/download-artifact@v1
134+
uses: actions/download-artifact@v3
132135
with:
133136
name: engine-${{ matrix.profile }}
134137

@@ -138,12 +141,11 @@ jobs:
138141
path: "/home/runner/.cargo/bin/viceroy"
139142
key: crate-cache-viceroy-${{ env.viceroy_version }}
140143

141-
- run: npm i
144+
- run: yarn
142145

143146
- name: Build WPT runtime
144147
run: |
145-
cd engine-${{ matrix.profile }}
146-
bash ../tests/wpt-harness/build-wpt-runtime.sh
148+
bash ./tests/wpt-harness/build-wpt-runtime.sh
147149
148150
- name: Prepare WPT hosts
149151
run: |
@@ -153,9 +155,8 @@ jobs:
153155
- name: Run tests
154156
timeout-minutes: 20
155157
run: |
156-
cd engine-${{ matrix.profile }}
157158
# Skip slow tests when testing the debug runtime.
158-
node ../tests/wpt-harness/run-wpt.mjs -vv $(((${{ matrix.profile }} == "debug")) && echo "--skip-slow-tests")
159+
node ./tests/wpt-harness/run-wpt.mjs -vv $(((${{ matrix.profile }} == "debug")) && echo "--skip-slow-tests")
159160
160161
# Consumes all published artifacts from all the previous build steps, creates
161162
# a bunch of tarballs for all of them, and then publishes the tarballs
@@ -211,6 +212,9 @@ jobs:
211212
steps:
212213
- name: Checkout fastly/js-compute-runtime
213214
uses: actions/checkout@v2
215+
- uses: actions/setup-node@v3
216+
with:
217+
node-version: 18
214218

215219
- name: Set up Fastly CLI
216220
uses: fastly/compute-actions/setup@v2
@@ -224,11 +228,11 @@ jobs:
224228
key: crate-cache-viceroy-${{ env.viceroy_version }}
225229

226230
- name: Download Engine
227-
uses: actions/download-artifact@v1
231+
uses: actions/download-artifact@v3
228232
with:
229233
name: engine-release
230234

231-
- run: npm i
235+
- run: yarn
232236

233237
- name: js-compute Integration Tests Job
234238
timeout-minutes: 20
@@ -280,7 +284,10 @@ jobs:
280284
runs-on: ubuntu-latest
281285
steps:
282286
- uses: actions/checkout@v2
283-
- run: npm i
287+
- uses: actions/setup-node@v3
288+
with:
289+
node-version: 18
290+
- run: yarn
284291
shell: bash
285292
- run: npm run test:types
286293

bin/main.wasm

6.45 MB
Binary file not shown.

0 commit comments

Comments
 (0)