Skip to content

Tools: Update packages, switch from yarn to npm #1172

Tools: Update packages, switch from yarn to npm

Tools: Update packages, switch from yarn to npm #1172

Workflow file for this run

name: Static Analysis (Linting)
# This workflow is triggered on pushes to trunk, and any PRs.
on:
push:
branches: [trunk]
pull_request:
jobs:
check:
name: All
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
- name: Install NodeJS
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
with:
node-version-file: '.nvmrc'
cache: npm
- name: Install JS dependencies
run: |
npm install
- name: Set PHP version
uses: shivammathur/setup-php@e04e1d97f0c0481c6e1ba40f8a538454fe5d7709 # v2.21.2
with:
php-version: 7.4
coverage: none
tools: composer:v2
- name: Install PHP dependencies
run: |
composer install
- name: Lint JavaScript and Styles
run: |
npm run lint:js --workspaces -- --quiet
npm run lint:css --workspaces
- name: Lint PHP
run: |
composer run lint