[docker-compose] Add setup service to install node_modules and init db #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |