mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-10 01:07:45 +01:00
Updated Node (6 -> 20), NPM (6 -> 10), jsdom (11.11.0 -> 24.1.0), leche (2.2.3 -> 2.3.0), mocha (5.2.0 -> 6.2.3)
37 lines
786 B
YAML
37 lines
786 B
YAML
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 10 on ubuntu-latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout.
|
|
uses: actions/checkout@v4
|
|
|
|
- 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@v4
|
|
with:
|
|
node-version: 20
|
|
|
|
- name: Tests.
|
|
run: |
|
|
npm install
|
|
npm test
|