Skip to content

Commit

Permalink
feat: rename project to ribot, update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
alberto-abarzua committed Nov 15, 2023
1 parent ddee17c commit 1a7e856
Show file tree
Hide file tree
Showing 33 changed files with 566 additions and 359 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/backend-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@

name: Backend Arm Ci

on:
push:
paths:
- 'backend/**'

jobs:
build-test:
runs-on: ubuntu-latest
environment: general
env:
ESP_CONTROLLER_SERVER_PORT: ${{ vars.ESP_CONTROLLER_SERVER_PORT }}
ESP_CONTROLLER_SERVER_HOST: ${{ vars.ESP_CONTROLLER_SERVER_HOST }}
ESP_WIFI_SSID: ${{ vars.ESP_WIFI_SSID }}
ESP_WIFI_PASSWORD: ${{ vars.ESP_WIFI_PASSWORD }}
CONTROLLER_WEBSOCKET_PORT: ${{ vars.CONTROLLER_WEBSOCKET_PORT }}
CONTROLLER_SERVER_PORT: ${{ vars.CONTROLLER_SERVER_PORT }}
BACKEND_HTTP_PORT: ${{ vars.BACKEND_HTTP_PORT }}
NEXT_PUBLIC_BACKEND_URL: ${{ vars.NEXT_PUBLIC_BACKEND_URL }}
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set Env File
run: printenv | grep -v "^\(PWD\|SHLVL\|HOME\)" > .env
- name: Build all containers
run: ./manage.py build

- name: Lint Backend
run: ./manage.py lint --container backend

- name: Stop and remove containers
if: always()
run: ./manage.py down


42 changes: 42 additions & 0 deletions .github/workflows/controller-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@

name: General Arm Ci

on:
push:
paths:
- 'firmware/**'
- 'controller/**'

jobs:
build-test:
runs-on: ubuntu-latest
environment: general
env:
ESP_CONTROLLER_SERVER_PORT: ${{ vars.ESP_CONTROLLER_SERVER_PORT }}
ESP_CONTROLLER_SERVER_HOST: ${{ vars.ESP_CONTROLLER_SERVER_HOST }}
ESP_WIFI_SSID: ${{ vars.ESP_WIFI_SSID }}
ESP_WIFI_PASSWORD: ${{ vars.ESP_WIFI_PASSWORD }}
CONTROLLER_WEBSOCKET_PORT: ${{ vars.CONTROLLER_WEBSOCKET_PORT }}
CONTROLLER_SERVER_PORT: ${{ vars.CONTROLLER_SERVER_PORT }}
BACKEND_HTTP_PORT: ${{ vars.BACKEND_HTTP_PORT }}
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set Env File
run: printenv | grep -v "^\(PWD\|SHLVL\|HOME\)" > .env
- name: Build all containers
run: ./manage.py build

- name: Lint Controller
run: ./manage.py lint --container controller

- name: Run Firmware and Controller Tests
run: ./manage.py test

- name: Stop and remove containers
if: always()
run: ./manage.py down




54 changes: 54 additions & 0 deletions .github/workflows/firmware-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@

name: Firmware CI

on:
push:
paths:
- 'firmware/**'

jobs:
linux-build:
runs-on: ubuntu-latest
environment: general
env:
ESP_CONTROLLER_SERVER_PORT: ${{ vars.ESP_CONTROLLER_SERVER_PORT }}
ESP_CONTROLLER_SERVER_HOST: ${{ vars.ESP_CONTROLLER_SERVER_HOST }}
ESP_WIFI_SSID: ${{ vars.ESP_WIFI_SSID }}
ESP_WIFI_PASSWORD: ${{ vars.ESP_WIFI_PASSWORD }}
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set Env File
run: printenv | grep -v "^\(PWD\|SHLVL\|HOME\)" > .env

- name: Build all containers
run: ./manage.py build

- name: Build Firmware for Linux
run: ./manage.py buildf

- name: Stop and remove containers
if: always()
run: ./manage.py down

esp-idf-build:
runs-on: ubuntu-latest
environment: general
env:
ESP_CONTROLLER_SERVER_HOST: ${{ vars.ESP_CONTROLLER_SERVER_HOST }}
ESP_CONTROLLER_SERVER_PORT: ${{ vars.ESP_CONTROLLER_SERVER_PORT }}
ESP_WIFI_SSID: ${{ vars.ESP_WIFI_SSID }}
ESP_WIFI_PASSWORD: ${{ vars.ESP_WIFI_PASSWORD }}
steps:
- name: Check out repository
uses: actions/checkout@v3

- name: Set Env File
run: printenv | grep -v "^\(PWD\|SHLVL\|HOME\)" > .env

- name: Build firmware for ESP32 using ESP-IDF
run: ./manage.py build-esp




56 changes: 56 additions & 0 deletions .github/workflows/frontend-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@

name: General Arm Ci

on:
push:
paths:
- 'frontend/**'

jobs:
build-test:
runs-on: ubuntu-latest
environment: general
env:
ESP_CONTROLLER_SERVER_PORT: ${{ vars.ESP_CONTROLLER_SERVER_PORT }}
ESP_CONTROLLER_SERVER_HOST: ${{ vars.ESP_CONTROLLER_SERVER_HOST }}
ESP_WIFI_SSID: ${{ vars.ESP_WIFI_SSID }}
ESP_WIFI_PASSWORD: ${{ vars.ESP_WIFI_PASSWORD }}
CONTROLLER_WEBSOCKET_PORT: ${{ vars.CONTROLLER_WEBSOCKET_PORT }}
CONTROLLER_SERVER_PORT: ${{ vars.CONTROLLER_SERVER_PORT }}
BACKEND_HTTP_PORT: ${{ vars.BACKEND_HTTP_PORT }}
NEXT_PUBLIC_BACKEND_URL: ${{ vars.NEXT_PUBLIC_BACKEND_URL }}
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set Env File
run: printenv | grep -v "^\(PWD\|SHLVL\|HOME\)" > .env
- name: Build all containers
run: ./manage.py build

- name: Lint Frontend
run: ./manage.py lint --container frontend

- name: Stop and remove containers
if: always()
run: ./manage.py down

esp-idf-build:
runs-on: ubuntu-latest
environment: general
env:
ESP_CONTROLLER_SERVER_HOST: ${{ vars.ESP_CONTROLLER_SERVER_HOST }}
ESP_CONTROLLER_SERVER_PORT: ${{ vars.ESP_CONTROLLER_SERVER_PORT }}
ESP_WIFI_SSID: ${{ vars.ESP_WIFI_SSID }}
ESP_WIFI_PASSWORD: ${{ vars.ESP_WIFI_PASSWORD }}
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set Env File
run: printenv | grep -v "^\(PWD\|SHLVL\|HOME\)" > .env

- name: Esp-idf Build
run: ./manage.py build-esp




41 changes: 0 additions & 41 deletions arm_docs/README.md

This file was deleted.

13 changes: 5 additions & 8 deletions arm_docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import { themes as prismThemes } from "prism-react-renderer";
/** @type {import('@docusaurus/types').Config} */
const config = {
title: "RiBot",
tagline: "Navigate Robotics with Ease: Simple Software and Interface for Your Robot DIY Robot Arm",
tagline:
"Navigate Robotics with Ease: Simple Software and Interface for Your Robot DIY Robot Arm",
favicon: "img/favicon.ico",

// Set the production url of your site here
Expand All @@ -21,7 +22,7 @@ const config = {
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: "alberto-abarzua", // Usually your GitHub org/user name.
projectName: "robot-arm-control", // Usually your repo name.
projectName: "ribot", // Usually your repo name.

onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
Expand Down Expand Up @@ -93,7 +94,7 @@ const config = {
label: "Docs",
},
{
href: "https://github.com/alberto-abarzua/robot-arm-control",
href: "https://github.com/alberto-abarzua/ribot",
label: "GitHub",
position: "right",
},
Expand All @@ -116,12 +117,8 @@ const config = {
items: [
{
label: "GitHub",
href: "https://github.com/alberto-abarzua/robot-arm-control",
href: "https://github.com/alberto-abarzua/ribot",
},
// {
// label: "Docker Hub",
// href: "https://hub.docker.com/r/albertoabarzua/robot-arm-control",
// },
],
},
],
Expand Down
Loading

0 comments on commit 1a7e856

Please sign in to comment.