Skip to content

Add node matrix to action to test 18 and lts #8

Add node matrix to action to test 18 and lts

Add node matrix to action to test 18 and lts #8

name: Static Linting
on:
pull_request:
push:
branches:
- trunk
jobs:
php:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
uses: php-actions/composer@v6
- name: Lint PHP files
run: composer run lint
name: PHP Files
other:
runs-on: ubuntu-latest
strategy:

Check failure on line 25 in .github/workflows/pull-request-actions.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pull-request-actions.yml

Invalid workflow file

You have an error in your yaml syntax on line 25
matrix:
node-version: [18, lts]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: 8
- name: Install dependencies
run: pnpm i
- name: Lint JavaScript files
run: npm run lint:js
- name: Lint CSS files
run: npm run lint:css
- name: Lint package.json files
run: npm run lint:pkg-json
env:
CI: true
name: Javascript, CSS, and package.json