Skip to content

Commit a69d6f8

Browse files
committed
Adds workflows
1 parent 8f06838 commit a69d6f8

File tree

4 files changed

+107
-0
lines changed

4 files changed

+107
-0
lines changed

.github/workflows/firmware.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Firmware CI
2+
3+
on:
4+
push:
5+
branches: [ main, develop ]
6+
paths:
7+
- 'firmware/**'
8+
- '.github/workflows/firmware.yml'
9+
pull_request:
10+
branches: [ main ]
11+
paths:
12+
- 'firmware/**'
13+
- '.github/workflows/firmware.yml'
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- name: Cache pip
23+
uses: actions/cache@v4
24+
with:
25+
path: ~/.cache/pip
26+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
27+
restore-keys: |
28+
${{ runner.os }}-pip-
29+
30+
- name: Cache PlatformIO
31+
uses: actions/cache@v4
32+
with:
33+
path: ~/.platformio
34+
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
35+
36+
- name: Set up Python
37+
uses: actions/setup-python@v4
38+
with:
39+
python-version: '3.9'
40+
41+
- name: Install PlatformIO
42+
run: |
43+
python -m pip install --upgrade pip
44+
pip install --upgrade platformio
45+
46+
- name: Build firmware
47+
working-directory: ./firmware
48+
run: pio run
49+
50+
- name: Upload firmware artifacts
51+
uses: actions/upload-artifact@v4
52+
with:
53+
name: firmware-build
54+
path: firmware/.pio/build/
55+
retention-days: 7

.github/workflows/frontend.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Frontend CI
2+
3+
on:
4+
push:
5+
branches: [ main, develop ]
6+
paths:
7+
- 'frontend/**'
8+
- '.github/workflows/frontend.yml'
9+
pull_request:
10+
branches: [ main ]
11+
paths:
12+
- 'frontend/**'
13+
- '.github/workflows/frontend.yml'
14+
15+
jobs:
16+
test:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: '18'
26+
cache: 'npm'
27+
cache-dependency-path: frontend/package-lock.json
28+
29+
- name: Install dependencies
30+
working-directory: ./frontend
31+
run: npm ci
32+
33+
- name: Run TypeScript check
34+
working-directory: ./frontend
35+
run: npm run type-check
36+
37+
- name: Run linter
38+
working-directory: ./frontend
39+
run: npm run lint
40+
41+
- name: Build project
42+
working-directory: ./frontend
43+
run: npm run build
44+
45+
- name: Upload build artifacts
46+
uses: actions/upload-artifact@v4
47+
with:
48+
name: frontend-build
49+
path: frontend/dist/
50+
retention-days: 7

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
A complete hardware + software solution for real-time 3D accelerometer visualization. This project combines an ESP32S3 microcontroller with LSM6DS3 accelerometer and a sophisticated web-based 3D visualization frontend.
44

5+
![Demo](images/demo.png)
6+
57
## Overview
68

79
- **Hardware**: ESP32S3 + LSM6DS3 accelerometer with I2C communication

images/demo.png

1.91 MB
Loading

0 commit comments

Comments
 (0)