From aae5353cff9d8e1999c8fa54df8ef38a17f8d27e Mon Sep 17 00:00:00 2001 From: Otto Kruse Date: Mon, 20 Jan 2025 14:10:29 +0100 Subject: [PATCH] Browser tests to use Node 18 --- .github/workflows/browser.yml | 26 ++++++++++++++++++++++++++ .github/workflows/codeguru.yml | 6 ++++-- .github/workflows/main.yml | 1 - 3 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/browser.yml diff --git a/.github/workflows/browser.yml b/.github/workflows/browser.yml new file mode 100644 index 0000000..02df31e --- /dev/null +++ b/.github/workflows/browser.yml @@ -0,0 +1,26 @@ +name: test +on: + push: + branches: [main] + pull_request: + branches: [main] + workflow_dispatch: + +jobs: + test: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: "18" + - name: install + run: | + npm install -g npm@9 + npm install + - name: test + run: | + npm run pack-for-tests + npm run test:browser + env: + CI: "true" diff --git a/.github/workflows/codeguru.yml b/.github/workflows/codeguru.yml index 1da9c80..f047e1b 100644 --- a/.github/workflows/codeguru.yml +++ b/.github/workflows/codeguru.yml @@ -1,8 +1,10 @@ name: codeguru on: push: - branches: - - "main" + branches: [main] + pull_request: + branches: [main] + workflow_dispatch: permissions: id-token: write diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 204cab3..5c6c027 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,7 +26,6 @@ jobs: npm run pack-for-tests npm run test:install npm run test:import - npm run test:browser npm run test:speed env: CI: "true"