Skip to content

Merge pull request #1508 from nextcloud/automated/noid/stable27-fix-n… #2638

Merge pull request #1508 from nextcloud/automated/noid/stable27-fix-n…

Merge pull request #1508 from nextcloud/automated/noid/stable27-fix-n… #2638

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