mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
63 lines
1.4 KiB
YAML
63 lines
1.4 KiB
YAML
name: Checks
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
pull_request:
|
|
branches:
|
|
- '**'
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
|
image: px4io/px4-dev:v1.16.0-rc1-258-g0369abd556
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
check: [
|
|
"check_format",
|
|
"check_newlines",
|
|
"tests",
|
|
"tests_coverage",
|
|
"px4_fmu-v2_default stack_check",
|
|
"validate_module_configs",
|
|
"shellcheck_all",
|
|
"NO_NINJA_BUILD=1 px4_fmu-v5_default",
|
|
"NO_NINJA_BUILD=1 px4_sitl_default",
|
|
"px4_sitl_allyes",
|
|
"module_documentation",
|
|
]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Building [${{ matrix.check }}]
|
|
env:
|
|
PX4_SBOM_DISABLE: 1
|
|
run: |
|
|
cd "$GITHUB_WORKSPACE"
|
|
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
|
make ${{ matrix.check }}
|
|
|
|
- name: Uploading Coverage to Codecov.io
|
|
if: contains(matrix.check, 'coverage')
|
|
uses: codecov/codecov-action@v1
|
|
with:
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
flags: unittests
|
|
file: coverage/lcov.info
|