Skip to content

try reusable jobs

try reusable jobs #1

Workflow file for this run

name: Check JS
on:
workflow_call:
jobs:
check_js:

Check failure on line 7 in .github/workflows/check_js.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/check_js.yml

Invalid workflow file

You have an error in your yaml syntax on line 7
name: 2️⃣ JS Node ${{ matrix.node-version }} - Code Style errors & Compilation
runs-on: ubuntu-latest
needs:
- php_syntax_errors
strategy:
matrix:
node-version: [18, 20]
steps:
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: npm install -D
- name: Check Style
run: npm run check-formatting
- name: Check TypeScript
run: npm run check
- name: Compile Front-end
run: npm run build