feat(server): implement gettingStarted features #101
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: Continuous Integration | |
on: | |
pull_request: | |
branches: [main] | |
types: [opened, synchronize] | |
paths: ["apps/web/**", "packages/**"] | |
env: | |
DATABASE_URL: ${{ secrets.DATABASE_URL }} | |
NEXT_PUBLIC_VERCEL_URL: ${{ secrets.NEXT_PUBLIC_VERCEL_URL }} | |
LOCAL_URL: ${{ secrets.LOCAL_URL }} | |
jobs: | |
avoid_redundancy: | |
name: Avoid Redundancy | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Cancel Previous Redundant Builds | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
code-quality: | |
name: Code Quality | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: yarn | |
- name: Install Dependencies | |
run: yarn --immutable | |
- name: Linter Check | |
run: yarn lint:check | |
client-package: | |
name: Client Package | |
runs-on: ubuntu-22.04 | |
needs: [code-quality] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: yarn | |
- name: Install Dependencies | |
run: yarn --immutable | |
- name: Test | |
run: yarn client:test | |
server-package: | |
name: Server Package | |
runs-on: ubuntu-22.04 | |
needs: [code-quality] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: yarn | |
- name: Install Dependencies | |
run: yarn --immutable | |
- name: Test | |
run: yarn server:test | |
web-app: | |
name: Web App | |
runs-on: ubuntu-22.04 | |
needs: [client-package, server-package] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: yarn | |
- name: Install Dependencies | |
run: yarn --immutable | |
- name: Build | |
run: yarn web:build |