hedgedoc/.github/workflows/build.yml

34 lines
745 B
YAML
Raw Normal View History

name: test, 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 and build with NodeJS ${{ matrix.node }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Cache node_modules
2020-11-06 19:36:26 -05:00
uses: actions/cache@v2.1.3
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