thunderhub/.github/workflows/nodejs.yml
Anthony Potdevin 6312cfbd9f
ci: 👷 add nextjs cache
2020-12-20 01:03:23 +01:00

32 lines
665 B
YAML

name: Test and Build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '14'
- 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
npm run tsc
npm run build