Skip to content

[stable27] Fix unit tests for PHP 8.2 #2648

[stable27] Fix unit tests for PHP 8.2

[stable27] Fix unit tests for PHP 8.2 #2648

name: Check handlebars templates
on:
pull_request:
push:
branches:
- master
- stable*
jobs:
check-handlebars-templates:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Read package.json node and npm engines version
uses: skjnldsv/[email protected]
id: versions
with:
fallbackNode: '^12'
fallbackNpm: '^6'
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
uses: actions/setup-node@v2
with:
node-version: ${{ steps.versions.outputs.nodeVersion }}
- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}"
- name: Install handlebars
run: |
npm install -g handlebars
- name: Run check-handlebars-templates.sh
run: |
npm install -g handlebars
./check-handlebars-templates.sh