Add farm plot and structure management features with ENUM types and t… #22
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: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20.9.0" | |
- name: Cache npm dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-npm- | |
- name: Initialize and Install (Frontend) | |
working-directory: ./frontend | |
run: | | |
if [ ! -f "package-lock.json" ]; then | |
npm init -y | |
npm install | |
else | |
npm ci | |
fi | |
- name: Setup Deno | |
uses: denoland/setup-deno@v2 | |
with: | |
deno-version: "2.1.6" | |
- name: Install Deno dependencies | |
working-directory: ./backend | |
run: deno install | |
- name: Deno formatting | |
working-directory: ./backend | |
run: deno fmt |