test: add tests to templates, fix some bugs #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Test Suite: Linter (templates)" | |
on: | |
push: | |
pull_request: | |
paths: | |
- 'templates/**' | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
tests: | |
if: github.repository == 'cutenode/retrogen' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: current | |
- name: Install most recent npm | |
run: npm install -g npm | |
- name: Run npm install -w templates | |
run: npm install -w templates | |
- name: Run npm run lint -w templates | |
run: npm run lint -w templates |