muse/.github/workflows/build.yml
Max Isom fd7810f839
Generate Prisma client before linting
Otherwise since dependencies are cached schema changes won't be reflected.
2022-02-11 21:18:53 -05:00

33 lines
859 B
YAML

name: Lint & build
on:
push:
pull_request:
jobs:
build:
name: Lint & build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v2
with:
node-version: '16'
- name: Cache dependencies
uses: actions/cache@v1
with:
path: ./node_modules
key: ${{ runner.OS }}-dependencies-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.OS }}-dependencies-${{ env.cache-name }}-
${{ runner.OS }}-dependencies-
${{ runner.OS }}-
- name: Install dependencies
run: yarn install
- name: Generate Prisma client
run: yarn prisma generate
- name: Run lint
run: yarn lint
- name: Build
run: yarn build