Skip to content

chore: update ci

chore: update ci #3

Workflow file for this run

<<<<<<< HEAD
name: General Arm Ci

Check failure on line 3 in .github/workflows/controller-ci.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/controller-ci.yaml

Invalid workflow file

You have an error in your yaml syntax on line 3
=======
name: Controller and Firmware tests CI
>>>>>>> 52c974d (chore: update ci)
on:
push:
paths:
- 'firmware/**'
- 'controller/**'
workflow_dispatch:
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