mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 01:36:29 -05:00
Restructure github flow (#165)
* Restructure github flow * Use node js action * Add more node versions Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
parent
e64b07b289
commit
70af8a17d1
1 changed files with 11 additions and 7 deletions
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
|
@ -9,6 +9,10 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
node: ['10', '12', '14']
|
||||||
|
name: Test with NodeJS ${{ matrix.node }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
@ -17,11 +21,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
path: node_modules
|
path: node_modules
|
||||||
key: node_modules
|
key: node_modules
|
||||||
|
- name: Set up NodeJS
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node }}
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
uses: borales/actions-yarn@v2.1.0
|
run: yarn install
|
||||||
with:
|
- name: Build project
|
||||||
cmd: install
|
run: yarn build
|
||||||
- name: build project
|
|
||||||
uses: borales/actions-yarn@v2.1.0
|
|
||||||
with:
|
|
||||||
cmd: build
|
|
||||||
|
|
Loading…
Reference in a new issue