mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-04 02:48:13 +10:00
61 lines
1.7 KiB
YAML
61 lines
1.7 KiB
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- device-framework
|
|
tags:
|
|
- "v*"
|
|
pull_request:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
documentation:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- run: bash -n scripts/*.sh tools/check-ota-partitions.sh tools/portal-hardware tools/lib/*.sh tools/tests/*.sh
|
|
- run: python3 -m py_compile test/portal-harness/tools/ota_fixture_input.py
|
|
- run: |
|
|
for spec in tests/portal-harness/tests/*.js; do
|
|
node --check "$spec"
|
|
done
|
|
- run: timeout 15s python3 tools/tests/test-capture-serial.py
|
|
- run: timeout 15s bash tools/tests/test-ota-fixture-identity.sh
|
|
- run: ./tools/check-ota-partitions.sh
|
|
- run: ./scripts/check-docs.sh
|
|
|
|
compile-tests:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- platform: esp8266
|
|
examples: true
|
|
ota_fixtures: true
|
|
unity: true
|
|
- platform: esp32
|
|
examples: true
|
|
ota_fixtures: true
|
|
unity: true
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.11'
|
|
- run: python -m pip install --upgrade platformio==6.1.19
|
|
- run: ./scripts/test.sh compile --platform ${{ matrix.platform }}
|
|
- if: matrix.unity
|
|
run: ./scripts/test.sh unity --platform ${{ matrix.platform }}
|
|
- if: matrix.examples
|
|
run: ./scripts/test.sh examples --platform ${{ matrix.platform }}
|
|
- if: matrix.ota_fixtures
|
|
run: ./scripts/test.sh ota-fixtures --platform ${{ matrix.platform }}
|