-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from alberto-abarzua/fix/minor_improvements
Fix/minor improvements
- Loading branch information
Showing
43 changed files
with
682 additions
and
398 deletions.
There are no files selected for viewing
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
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 backend container | ||
run: ./manage.py build --container backend | ||
|
||
- name: Lint Backend | ||
run: ./manage.py lint --container backend | ||
|
||
- name: Stop and remove containers | ||
if: always() | ||
run: ./manage.py down | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
|
||
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 Controller Container | ||
run: | | ||
./manage.py build --container controller | ||
- name: Build Firmware Container | ||
run: | | ||
./manage.py build --container firmware | ||
- 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 | ||
|
||
|
||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
|
||
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 Firmware Container for Linux | ||
run: ./manage.py build --container firmware | ||
|
||
- 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 ESP-IDF Container | ||
run: ./manage.py build --container esp-idf | ||
|
||
- name: Build firmware for ESP32 using ESP-IDF | ||
run: ./manage.py build-esp | ||
|
||
|
||
|
||
|
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
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 frontend container | ||
run: ./manage.py build --container frontend | ||
|
||
- 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 | ||
|
||
|
||
|
||
|
This file was deleted.
Oops, something went wrong.
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
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
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
Oops, something went wrong.