From b8cbab19fe537edcef40e2c8bbccac2bc2628629 Mon Sep 17 00:00:00 2001 From: l-1squared <30831153+l-1squared@users.noreply.github.com> Date: Fri, 25 Oct 2024 09:00:40 +0200 Subject: [PATCH] chore(JGIVEN-3): Use npm instead of yarn in workflow Signed-off-by: l-1squared <30831153+l-1squared@users.noreply.github.com> --- .github/workflows/html-app-branch_and_pr_build.yml | 6 +++--- legacy/karma.conf.js | 2 +- legacy/package.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/html-app-branch_and_pr_build.yml b/.github/workflows/html-app-branch_and_pr_build.yml index c6c78d61..cadb0ffd 100644 --- a/.github/workflows/html-app-branch_and_pr_build.yml +++ b/.github/workflows/html-app-branch_and_pr_build.yml @@ -12,11 +12,11 @@ jobs: steps: - uses: actions/checkout@v3 - name: Install - run: yarn install + run: npm install - name: Build - run: yarn build + run: npm run build - name: Test - run: yarn test + run: npm run test # Sample CI for react apps react: defaults: diff --git a/legacy/karma.conf.js b/legacy/karma.conf.js index d5f06567..059b8104 100644 --- a/legacy/karma.conf.js +++ b/legacy/karma.conf.js @@ -56,7 +56,7 @@ module.exports = function (config) { // start these browsers // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher - browsers: ['jsdom'], + browsers: ['ChromeHeadless', 'jsdom'], // Continuous Integration mode // if true, Karma captures browsers, runs the tests and exits diff --git a/legacy/package.json b/legacy/package.json index ed618418..58fc79af 100644 --- a/legacy/package.json +++ b/legacy/package.json @@ -13,7 +13,7 @@ "scripts": { "start": "webpack-dev-server --progress --port 8085", "debug": "webpack-dev-server -d --progress", - "test": "karma start --debug --single-run --browsers jsdom", + "test": "karma start --debug --single-run", "test-watch": "karma start --debug", "build": "mkdir dist && webpack --progress --mode=development", "integration-test": "yarn build && rm -rf integration && cp -r dist integration && cp -r data integration",