hedgedoc/.github/workflows/build.yml

34 lines
738 B
YAML
Raw Normal View History

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