Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflow/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Goal: Build the image for DevBoard Frontend and Push to Docker Hub, after linting the code
name: CI

on:
push:
branches: [master]

jobs:
code-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v7

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm" # Automates dependency caching for faster builds

- name: Install Dependencies
run: npm install

- name: Run Lint (Biome)
run: npm run lint

build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v7

- name: Docker Setup [Login]
uses: docker/login-action@v4
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Docker Build and Push
uses: docker/build-push-action@v7
with:
push: true
tags: ${{ vars.DOCKERHUB_USERNAME }}/devboard-fe-master:latest
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This is the same DevBoard UI as the `master` branch, but now the data comes
from a **real backend** instead of fake in-memory data.

Three pieces talk to each other:

# sa
```
browser → frontend (React) → backend (Go API) → database (Postgres)
```
Expand Down