π Fix: Google Cloud deployment error #81
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` | |
# @organization: Semantyk | |
# @project: client | |
# | |
# @file: This file contains the GitHub Actions workflow for the development CI. | |
# | |
# @created: Nov 29, 2023 | |
# @modified: Sep 18,2024 | |
# | |
# @author: Semantyk Team | |
# @maintainer: Daniel Bakas <https://id.danielbakas.com> | |
# | |
# @copyright: Copyright Β© Semantyk 2024. 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: [ 21.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: [ 21.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 |