Skip to content

[pytest] Add warning for PRs missing unit test file changes #1649

[pytest] Add warning for PRs missing unit test file changes

[pytest] Add warning for PRs missing unit test file changes #1649

name: Frontend CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Caching npm with setup node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install npm dependencies
run: npm ci
- name: run commit title format check
run: ./tools/ci/check_for_commit_message.sh
- name: run npm version checker
run: npm run check-pinned-versions
- name: run npm license checker
run: npm run check-license
- name: run npm absolute path detection
run: npm run check-absolute-paths
- name: run js lint
run: npm run lint
- name: run style lint
run: npm run style-lint
- name: run js tests
run: |
# https://jestjs.io/docs/en/troubleshooting.html#tests-are-extremely-slow-on-docker-andor-continuous-integration-ci-server
sed -i 's/"test": "jest"/"test": "jest --runInBand"/g' package.json
npm run test