Skip to content

[docker-compose] Add setup service to install node_modules and init db #8

[docker-compose] Add setup service to install node_modules and init db

[docker-compose] Add setup service to install node_modules and init db #8

name: Build Website on PRs
on:
pull_request:
branches:
- main
paths:
- website/**
# Review gh actions docs if you want to further define triggers, paths, etc
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
jobs:
website-build-on-PR:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
cache-dependency-path: ./website/yarn.lock
- name: Install dependencies
working-directory: ./website
run: yarn install --frozen-lockfile
- name: Test build website
working-directory: ./website
run: yarn build