Update workflows for ingestor, sinatra, and frontend (#295)

This commit is contained in:
l5y
2025-10-12 09:36:02 +02:00
committed by GitHub
parent e328a20929
commit 9e939194ba
5 changed files with 19 additions and 17 deletions

View File

@@ -4,8 +4,9 @@
- **`docker.yml`** - Build and push Docker images to GHCR - **`docker.yml`** - Build and push Docker images to GHCR
- **`codeql.yml`** - Security scanning - **`codeql.yml`** - Security scanning
- **`python.yml`** - Python testing - **`python.yml`** - Python ingestor pipeline
- **`ruby.yml`** - Ruby testing - **`ruby.yml`** - Ruby Sinatra app testing
- **`javascript.yml`** - Frontend test suite
## Usage ## Usage

View File

@@ -10,14 +10,14 @@ permissions:
contents: read contents: read
jobs: jobs:
test: frontend:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
- name: Set up Node.js 20 - name: Set up Node.js 22
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: '20' node-version: '22'
- name: Install dependencies - name: Install dependencies
run: npm install run: npm install
working-directory: web working-directory: web
@@ -30,8 +30,8 @@ jobs:
with: with:
token: ${{ secrets.CODECOV_TOKEN }} token: ${{ secrets.CODECOV_TOKEN }}
files: web/reports/javascript-coverage.json files: web/reports/javascript-coverage.json
flags: javascript flags: frontend
name: javascript name: frontend
env: env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Upload test results to Codecov - name: Upload test results to Codecov
@@ -39,4 +39,4 @@ jobs:
with: with:
token: ${{ secrets.CODECOV_TOKEN }} token: ${{ secrets.CODECOV_TOKEN }}
files: web/reports/javascript-junit.xml files: web/reports/javascript-junit.xml
flags: javascript flags: frontend

View File

@@ -10,12 +10,12 @@ permissions:
contents: read contents: read
jobs: jobs:
test: ingestor:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
- name: Set up Python 3.13 - name: Set up Python 3.13
uses: actions/setup-python@v3 uses: actions/setup-python@v5
with: with:
python-version: "3.13" python-version: "3.13"
- name: Install dependencies - name: Install dependencies

View File

@@ -10,7 +10,7 @@ permissions:
contents: read contents: read
jobs: jobs:
test: sinatra:
defaults: defaults:
run: run:
working-directory: ./web working-directory: ./web
@@ -42,13 +42,13 @@ jobs:
with: with:
token: ${{ secrets.CODECOV_TOKEN }} token: ${{ secrets.CODECOV_TOKEN }}
files: ./web/tmp/test-results/rspec.xml files: ./web/tmp/test-results/rspec.xml
flags: ruby-${{ matrix.ruby-version }} flags: sinatra-${{ matrix.ruby-version }}
- name: Upload coverage to Codecov - name: Upload coverage to Codecov
uses: codecov/codecov-action@v5 uses: codecov/codecov-action@v5
with: with:
token: ${{ secrets.CODECOV_TOKEN }} token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false fail_ci_if_error: false
flags: ruby-${{ matrix.ruby-version }} flags: sinatra-${{ matrix.ruby-version }}
env: env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Run rufo - name: Run rufo

View File

@@ -1,7 +1,8 @@
# Production dependencies # Production dependencies
meshtastic>=2.0.0 meshtastic>=2.5.0
protobuf>=4.21.12 protobuf>=5.27.2
# Development dependencies (optional) # Development dependencies (optional)
black>=23.0.0 black>=24.8.0
pytest>=7.0.0 pytest>=8.3.0
pytest-cov>=5.0.0