From a559ec1d97712b68edc4b98266fc72184fa4038e Mon Sep 17 00:00:00 2001 From: pods Date: Sat, 11 Jan 2025 18:56:34 +0200 Subject: [PATCH 1/7] Create tests-run.yml --- .github/workflows/tests-run.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/tests-run.yml diff --git a/.github/workflows/tests-run.yml b/.github/workflows/tests-run.yml new file mode 100644 index 0000000..f13827a --- /dev/null +++ b/.github/workflows/tests-run.yml @@ -0,0 +1,30 @@ +# This workflow will do a clean installation of node dependencies, cache/restore them, run tests across different versions of node +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs + +name: Node.js CI + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [18.x, 20.x, 22.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm ci + - run: npm test From c96fa2c8d011f8376b89e8e0211712fb2437b140 Mon Sep 17 00:00:00 2001 From: pods Date: Sat, 11 Jan 2025 19:05:17 +0200 Subject: [PATCH 2/7] Update tests-run.yml --- .github/workflows/tests-run.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests-run.yml b/.github/workflows/tests-run.yml index f13827a..887dce6 100644 --- a/.github/workflows/tests-run.yml +++ b/.github/workflows/tests-run.yml @@ -26,5 +26,5 @@ jobs: with: node-version: ${{ matrix.node-version }} cache: 'npm' - - run: npm ci + - run: npm ci --force - run: npm test From e96262e6d74b3633e3c9d05012e4b78060566734 Mon Sep 17 00:00:00 2001 From: pods Date: Sat, 11 Jan 2025 19:16:38 +0200 Subject: [PATCH 3/7] Update tests-run.yml --- .github/workflows/tests-run.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests-run.yml b/.github/workflows/tests-run.yml index 887dce6..ec33c13 100644 --- a/.github/workflows/tests-run.yml +++ b/.github/workflows/tests-run.yml @@ -1,7 +1,7 @@ # This workflow will do a clean installation of node dependencies, cache/restore them, run tests across different versions of node # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs -name: Node.js CI +name: tests run on: push: @@ -21,6 +21,9 @@ jobs: steps: - uses: actions/checkout@v4 + - uses: actions/setup-dotnet@v4 + with: + global-json-file: global.json - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: From efa31c37d0cef7ed22064cb90c0b9df56539c4f0 Mon Sep 17 00:00:00 2001 From: pods Date: Sun, 12 Jan 2025 11:15:08 +0200 Subject: [PATCH 4/7] unused project references crashing builds --- tests/Tests.fsproj | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/Tests.fsproj b/tests/Tests.fsproj index 9aaa7b8..6ba8487 100644 --- a/tests/Tests.fsproj +++ b/tests/Tests.fsproj @@ -7,10 +7,6 @@ - - - - From 29e1219356b771a594086423c6b4eee9818a3e70 Mon Sep 17 00:00:00 2001 From: pods Date: Sun, 12 Jan 2025 11:24:18 +0200 Subject: [PATCH 5/7] ssl workaround Error: error:0308010C:digital envelope routines::unsupported code: 'ERR_OSSL_EVP_UNSUPPORTED' --- .github/workflows/tests-run.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/tests-run.yml b/.github/workflows/tests-run.yml index ec33c13..b833c23 100644 --- a/.github/workflows/tests-run.yml +++ b/.github/workflows/tests-run.yml @@ -9,6 +9,9 @@ on: pull_request: branches: [ "master" ] +env: + NODE_OPTIONS: --openssl-legacy-provider + jobs: build: From 27473adfeb1e83bf1a9f63a4410fc3e8ecfcfc67 Mon Sep 17 00:00:00 2001 From: pods Date: Sun, 12 Jan 2025 11:43:12 +0200 Subject: [PATCH 6/7] try workaround puppeteer ---> PuppeteerSharp.ProcessException: Failed to launch browser! [0112/092548.994837:FATAL:zygote_host_impl_linux.cc(117)] No usable sandbox! Update your kernel or see https://chromium.googlesource.com/chromium/src/+/master/docs/linux/suid_sandbox_development.md for more information on developing with the SUID sandbox. If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox. --- .github/workflows/tests-run.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests-run.yml b/.github/workflows/tests-run.yml index b833c23..7212f3a 100644 --- a/.github/workflows/tests-run.yml +++ b/.github/workflows/tests-run.yml @@ -11,11 +11,11 @@ on: env: NODE_OPTIONS: --openssl-legacy-provider - + jobs: build: - runs-on: ubuntu-latest + runs-on: windows-latest strategy: matrix: From c754f33c171386ec6b8f45d0b2f41af82c3c597f Mon Sep 17 00:00:00 2001 From: pods Date: Sun, 12 Jan 2025 16:12:27 +0200 Subject: [PATCH 7/7] all branches --- .github/workflows/tests-run.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/tests-run.yml b/.github/workflows/tests-run.yml index 7212f3a..0a0c721 100644 --- a/.github/workflows/tests-run.yml +++ b/.github/workflows/tests-run.yml @@ -5,9 +5,7 @@ name: tests run on: push: - branches: [ "master" ] pull_request: - branches: [ "master" ] env: NODE_OPTIONS: --openssl-legacy-provider