Merge pull request #19949 from uaoleg/patch-2 #243
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: build-node | |
on: [push, pull_request] | |
env: | |
DEFAULT_COMPOSER_FLAGS: "--prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: NPM 6 on ubuntu-latest | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout. | |
uses: actions/checkout@v3 | |
- name: Install dependencies. | |
run: composer update $DEFAULT_COMPOSER_FLAGS | |
- name: Install JQuery `3.6.*@stable` for tests. | |
run: composer require "bower-asset/jquery:3.6.*@stable" | |
- name: Install node.js. | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 6 | |
- name: Tests. | |
run: | | |
npm install | |
npm test |