mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-29 04:14:30 -05:00
70af8a17d1
* Restructure github flow * Use node js action * Add more node versions Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
31 lines
708 B
YAML
31 lines
708 B
YAML
name: lint and build
|
|
|
|
on:
|
|
push:
|
|
branches: [master, dev]
|
|
pull_request:
|
|
branches: [master, dev]
|
|
|
|
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: Build project
|
|
run: yarn build
|