Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stabilize build #725

Merged
merged 4 commits into from
Dec 18, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ jobs:
name: Build and unit-test on supported platforms and NodeJS versions
strategy:
matrix:
node-version: [18.x, 20.x]
# Make sure you're addressing it to the minor version, as sometimes macos was picking 20.9 while others 20.10
# and that caused issues with rollup
node-version: [18.19.x, 20.10.x]
os: [ubuntu-latest, windows-latest, macos-latest]

runs-on: ${{ matrix.os }}
timeout-minutes: 15
timeout-minutes: 10

steps:
- uses: actions/checkout@v3
Expand All @@ -35,7 +37,7 @@ jobs:

- name: Perform regular checks
run: |
npm install
npm ci
npm run format:check
npm run lint
npm run test:unit
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,13 @@ jobs:
name: Build and unit-test on supported platforms and NodeJS versions
strategy:
matrix:
node-version: [18.x, 20.x]
# Make sure you're addressing it to the minor version, as sometimes macos was picking 20.9 while others 20.10
# and that caused issues with rollup
node-version: [18.19.x, 20.10.x]
os: [ubuntu-latest, windows-latest, macos-latest]

runs-on: ${{ matrix.os }}
timeout-minutes: 15
timeout-minutes: 10

steps:
- uses: actions/checkout@v3
Expand All @@ -56,7 +58,7 @@ jobs:

- name: Perform regular checks
run: |
npm install
npm ci
npm run format:check
npm run lint
npm run test:unit
Expand Down Expand Up @@ -149,6 +151,7 @@ jobs:
path: .cypress

- name: Collect logs from providers and requestor
if: always()
run: |
mkdir log-output
docker compose -f tests/docker/docker-compose.yml logs provider-1 > log-output/provider-1.log
Expand Down
31 changes: 26 additions & 5 deletions examples/web/image.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ <h3>Logs</h3>
li.appendChild(document.createTextNode(msg));
logs_el.appendChild(li);
}

function setResponse(result) {
if (urlObject) {
URL.revokeObjectURL(urlObject);
Expand All @@ -99,11 +100,31 @@ <h3>Logs</h3>
}

const logger = {
log: (msg) => appendLog(`[${new Date().toISOString()}] ${msg}`),
warn: (msg) => appendLog(`[${new Date().toISOString()}] [warn] ${msg}`),
debug: (msg) => appendLog(`[${new Date().toISOString()}] [debug] ${msg}`),
error: (msg) => appendLog(`[${new Date().toISOString()}] [error] ${msg}`),
info: (msg) => appendLog(`[${new Date().toISOString()}] [info] ${msg}`),
log: (msg) => {
const fullMsg = `[${new Date().toISOString()}] ${msg}`;
console.log(fullMsg);
appendLog(fullMsg);
},
warn: (msg) => {
const fullMsg = `[${new Date().toISOString()}] [warn] ${msg}`;
console.warn(fullMsg);
appendLog(fullMsg);
},
debug: (msg) => {
const fullMsg = `[${new Date().toISOString()}] [debug] ${msg}`;
console.debug(fullMsg);
appendLog(fullMsg);
},
error: (msg) => {
const fullMsg = `[${new Date().toISOString()}] [error] ${msg}`;
console.error(fullMsg);
appendLog(fullMsg);
},
info: (msg) => {
const fullMsg = `[${new Date().toISOString()}] [info] ${msg}`;
console.log(fullMsg);
appendLog(fullMsg);
},
};

async function run() {
Expand Down
Loading
Loading