Skip to content

Merge pull request #34 from myst-templates/feat/deps #13

Merge pull request #34 from myst-templates/feat/deps

Merge pull request #34 from myst-templates/feat/deps #13

Workflow file for this run

name: CI
on:
push:
branches: [main, ci-*]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
submodules: recursive
- name: Use Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: 16.x
- run: npm install
- run: npm run lint:format
- run: npm run lint
test:
if: github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
strategy:
matrix:
node: ['16', '18']
name: Testing on node ${{ matrix.node }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
submodules: recursive
- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: 'npm'
- run: npm install
- run: npm run build:cli
- run: npm run link
- name: Clone and index templates
run: myst-templates-api index data/tex.yml data/docx.yml data/site.yml
- run: npm run test