hedgedoc/.github/workflows/build.yml

34 lines
745 B
YAML
Raw Normal View History

name: test, build
on:
push:
2020-08-15 14:17:06 +00:00
branches: [main]
pull_request:
2020-08-15 14:17:06 +00:00
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
2020-08-27 12:34:10 +00:00
node: ['12', '14']
name: Test and build 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