Merge pull request #37332 from ShaiMagal/getCustomerOrders #1075
This file contains 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: Js | |
on: | |
push: | |
pull_request: | |
# Do not run when only tests are updated | |
paths-ignore: | |
- 'tests/UI/**' | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.event_name }}-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
js-unit-tests: | |
runs-on: ubuntu-latest | |
name: Run unit tests | |
strategy: | |
matrix: | |
js: [ '16' ] | |
steps: | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.js }} | |
- name: Setup NPM | |
run: npm install -g npm@7 | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Cache Node Directory | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: ${{ runner.os }}-node- | |
- name: Run tests | |
run: npm install && npm run test | |
working-directory: ./admin-dev/themes/new-theme |