Files
nanopb/.github/workflows/trigger_on_code_change.yml
Petteri Aimonen 92d896216a Update Github workflows
Ubuntu-20.04 image was deprecated.

Build packages with oldest available (22.04) for
best compatibility, others with ubuntu-latest.
For simulator setups prone to breakage, use explicit
version.
2025-04-28 13:13:27 +03:00

65 lines
1.3 KiB
YAML

name: Test after code changes
on:
workflow_dispatch:
push:
paths:
- '**.c'
- '**.h'
- '**.py'
- '**.sh'
- '**.yml'
- '**.proto'
- '**.mk'
- '**.cmake'
pull_request:
paths:
- '**.c'
- '**.h'
- '**.py'
- '**.sh'
- '**.yml'
- '**.proto'
- '**.mk'
- '**.cmake'
jobs:
smoke_test:
name: Run test suite on Ubuntu
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.x']
os: ['ubuntu-latest']
steps:
- name: Check out code from GitHub
uses: actions/checkout@v4
with:
path: nanopb
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install protobuf-compiler splint valgrind
python3 -m pip install --user --upgrade scons protobuf grpcio-tools pyinstaller
python3 -c 'import google.protobuf; print(google.protobuf.__file__)'
- name: Run tests
run: |
cd nanopb/tests
scons
fuzz_tests:
needs: smoke_test
uses: ./.github/workflows/cifuzz.yml
binary_builds:
needs: smoke_test
uses: ./.github/workflows/binary_packages.yml