Release/1.4.26 - trunk to develop
#1241
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: JavaScript Unit Tests | |
| on: | |
| push: | |
| branches: | |
| - trunk | |
| - develop | |
| paths: | |
| - "**.js" | |
| - package.json | |
| - package-lock.json | |
| - .github/workflows/js-unit-tests.yml | |
| pull_request: | |
| paths: | |
| - "**.js" | |
| - package.json | |
| - package-lock.json | |
| - .github/workflows/js-unit-tests.yml | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| UnitTests: | |
| name: JavaScript unit tests | |
| runs-on: ubuntu-latest | |
| env: | |
| FORCE_COLOR: 2 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Prepare node | |
| uses: woocommerce/grow/prepare-node@actions-v1 | |
| with: | |
| node-version-file: ".nvmrc" | |
| - name: Run JavaScript unit tests | |
| run: npm run test:js |