thunderhub/.github/workflows/nodejs.yml

33 lines
665 B
YAML
Raw Normal View History

name: Test and Build
2020-12-19 22:39:32 +01:00
on:
push:
2020-12-20 00:51:31 +01:00
branches:
- master
2020-12-19 22:39:32 +01:00
pull_request:
2020-12-20 00:51:31 +01:00
branches:
- master
2020-12-19 22:39:32 +01:00
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node
2020-12-19 22:39:32 +01:00
uses: actions/setup-node@v1
with:
node-version: '14'
2020-12-20 01:03:23 +01:00
- name: Use NextJS Cache
uses: actions/cache@v2
with:
path: ${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}
- name: Install deps
run: npm ci
- name: Test and build
run: |
npm test
2020-12-20 00:56:25 +01:00
npm run tsc
npm run build