Skip to content

test: add tests to templates, fix some bugs #3

test: add tests to templates, fix some bugs

test: add tests to templates, fix some bugs #3

name: "Test Suite: @retrogen/templates"
on:
pull_request:
paths:
- 'templates/**'
branches:
- main
workflow_dispatch:
jobs:
tests:
if: github.repository == 'cutenode/retrogen'
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [current, lts/*, lts/-1]
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install most recent npm
run: npm install -g npm
- name: Run npm install -w templates
run: npm install -w templates
- name: Run npm test -w templates
run: npm test -w templates
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}