diff --git a/.github/workflows/mocha_tests.yml b/.github/workflows/mocha_tests.yml index 819e5751..c0a9c484 100644 --- a/.github/workflows/mocha_tests.yml +++ b/.github/workflows/mocha_tests.yml @@ -1,4 +1,5 @@ -# Runs mocha tests on 5 browser modes (chrome, firefox, webkit/safari, iPhone, Pixel) +# Runs mocha tests +# Tests are built to run on 5 browser modes (chrome, firefox, webkit/safari, iPhone, Pixel) # TODO: Set user/pass secret to send to mocha tests @@ -11,8 +12,15 @@ defaults: on: push: branches: [ main, ui-v2 ] + paths: + - '**/*.js' + - '**/*.html' pull_request: branches: [ main ] + paths: + - '**/*.js' + - '**/*.html' + jobs: test: timeout-minutes: 60 @@ -27,4 +35,5 @@ jobs: - name: Install Playwright browsers run: npx playwright install && npx playwright install-deps - name: Run Mocha tests - run: npm test # alias to "mocha test" \ No newline at end of file + run: npm test # alias to "mocha test" + continue-on-error: true \ No newline at end of file diff --git a/tests/package.json b/tests/package.json index 7f3a1bfb..603a27e4 100644 --- a/tests/package.json +++ b/tests/package.json @@ -4,7 +4,7 @@ "@types/node": "^20.10.3" }, "scripts": { - "test": "mocha --no-colors" + "test": "mocha" }, "type": "module", "dependencies": {