mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-03 07:29:36 -05:00
29709d2ba4
* Added yaml-frontmatter extracting and error handling * add tests * changed document-title, so the editor can change the title to the title of the yaml metadata. closes #303 * extracted first line parsing in a core rule of markdown-it document title will now be determined like this: 1. yaml metadata title 2. opengraph title 3. first level one heading 4. 'Untitled' * added documentTitle e2e test Co-authored-by: Erik Michelson <github@erik.michelson.eu> Co-authored-by: Philip Molares <philip@mauricedoepke.de> Co-authored-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Co-authored-by: mrdrogdrog <mr.drogdrog@gmail.com>
33 lines
748 B
YAML
33 lines
748 B
YAML
name: lint and build
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node: ['10', '12', '14']
|
|
name: Test with NodeJS ${{ matrix.node }}
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
- name: Cache node_modules
|
|
uses: actions/cache@v1.1.0
|
|
with:
|
|
path: node_modules
|
|
key: node_modules
|
|
- name: Set up NodeJS
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: ${{ matrix.node }}
|
|
- name: Install dependencies
|
|
run: yarn install
|
|
- name: Test Project
|
|
run: yarn test
|
|
- name: Build project
|
|
run: yarn build
|