π§ Refactor: Divide logic for frontend and backend #30
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
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
# # `dev.yaml` | |
# client | Semantyk | |
# | |
# Created: Nov 29, 2023 | |
# Modified: Dec 5, 2023 | |
# | |
# Author(s): Semantyk Team | |
# Maintainer(s): Daniel Bakas <https://id.danielbakas.com> | |
# | |
# Copyright Β© Semantyk 2023. All rights reserved. | |
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
name: Development CI Workflow | |
on: | |
push: | |
branches: | |
- dev | |
pull_request: | |
branches: | |
- dev | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [ 20.x ] | |
steps: | |
# 1. Checkout the Repository | |
- uses: actions/checkout@v4 | |
name: 1. Repository Checkout | |
# 2. Setup pnpm | |
- uses: pnpm/action-setup@v2 | |
name: 2. Setup pnpm | |
with: | |
version: 8 | |
# 3. Setup Node.js | |
- uses: actions/setup-node@v4 | |
name: 3. Setup Node.js (v${{ matrix.node-version }}) | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
# 4. Install Dependencies | |
- run: pnpm install | |
name: 4. Install Dependencies | |
# 5. Run Tests | |
- run: pnpm test | |
name: 5. Run Tests | |
build: | |
runs-on: ubuntu-latest | |
needs: test | |
strategy: | |
matrix: | |
node-version: [ 20.x ] | |
steps: | |
# 1. Checkout the Repository | |
- uses: actions/checkout@v4 | |
name: 1. Repository Checkout | |
# 2. Setup pnpm | |
- uses: pnpm/action-setup@v2 | |
name: 2. Setup pnpm | |
with: | |
version: 8 | |
# 3. Setup Node.js | |
- uses: actions/setup-node@v4 | |
name: 3. Setup Node.js (v${{ matrix.node-version }}) | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
# 4. Install Dependencies | |
- run: pnpm install | |
name: 4. Install Dependencies | |
# 5. Build | |
- run: pnpm run build | |
name: 5. Build |