diff --git a/.github/workflow/ci.yml b/.github/workflow/ci.yml new file mode 100644 index 00000000..db9f3e66 --- /dev/null +++ b/.github/workflow/ci.yml @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0a9b6cdf..f5a8a5c1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,7 @@ name: CI on: push: - branches: [master] + branches: [advanced] jobs: frontend: diff --git a/.github/workflows/matrix.yml b/.github/workflows/matrix.yml deleted file mode 100644 index 84a161ca..00000000 --- a/.github/workflows/matrix.yml +++ /dev/null @@ -1,33 +0,0 @@ -# Goal To install multiple versions of Go and do linting for multiple versions -name: Go Linter - -on: - workflow_dispatch: - -jobs: - code-format: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - go: ['1.22','1.23','1.24'] - steps: - - name: Code Checkout - uses: actions/checkout@v7 - - - name: Setup Go - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go }} - go-version-file: 'go.mod' - cache-dependency-path: go.sum - - - name: Run Go Formatter - run: go fmt - working-directory: backend - - - name: Run Go Vet - run: go vet - working-directory: backend - - \ No newline at end of file diff --git a/README.md b/README.md index 0866544f..f06d376d 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ There's no login and no AI here on purpose. The whole point is to *see how the pieces connect*. --- - +# trigger k liye k liye he bhai ## What you need - **Docker** (with Docker Compose, which comes with Docker Desktop). @@ -224,3 +224,4 @@ The browser calls these as `/api/...`; the backend serves them at the root. ├── backend/ Go API (main.go + Dockerfile) └── init/postgres/ schema + example data, loaded on first start ``` +#sa \ No newline at end of file diff --git a/devboard b/devboard new file mode 160000 index 00000000..817f038f --- /dev/null +++ b/devboard @@ -0,0 +1 @@ +Subproject commit 817f038f7c23a302488c7d5d0257eceddd448573