mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 11:16:31 -05:00
1b52bac838
* added all functionality to the toolbar buttons * added unit tests for the toolbar functions * added unit tests to CI * Added translated titles to buttons of toolbar Co-authored-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Co-authored-by: mrdrogdrog <mr.drogdrog@gmail.com> Co-authored-by: Erik Michelson <github@erik.michelson.eu>
33 lines
750 B
YAML
33 lines
750 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: run unit tests
|
|
run: yarn test
|
|
- name: Build project
|
|
run: yarn build
|