📝 Add typst templates to API #22
Workflow file for this run
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: 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 data/typst.yml | |
- run: npm run test |