2020-06-20 21:04:11 -03:00
|
|
|
name: Checks
|
2019-12-17 04:34:22 -04:00
|
|
|
|
2020-01-28 15:37:06 -04:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2022-09-07 01:09:44 -03:00
|
|
|
- 'main'
|
2020-01-28 15:37:06 -04:00
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- '*'
|
2019-12-17 04:34:22 -04:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
2020-03-29 11:36:20 -03:00
|
|
|
strategy:
|
2020-06-20 21:04:11 -03:00
|
|
|
fail-fast: false
|
2020-03-29 11:36:20 -03:00
|
|
|
matrix:
|
2020-06-20 21:04:11 -03:00
|
|
|
check: [
|
|
|
|
"check_format",
|
|
|
|
"tests",
|
2021-01-27 11:08:19 -04:00
|
|
|
"tests_coverage",
|
2020-06-20 21:04:11 -03:00
|
|
|
"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",
|
|
|
|
"airframe_metadata",
|
|
|
|
"module_documentation",
|
|
|
|
"parameters_metadata",
|
|
|
|
]
|
2020-11-19 12:07:47 -04:00
|
|
|
container:
|
2023-07-18 14:26:38 -03:00
|
|
|
image: px4io/px4-dev-nuttx-focal:2022-08-12
|
2020-11-19 12:07:47 -04:00
|
|
|
options: --privileged --ulimit core=-1 --security-opt seccomp=unconfined
|
2019-12-17 04:34:22 -04:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
2019-12-26 07:54:56 -04:00
|
|
|
with:
|
|
|
|
token: ${{ secrets.ACCESS_TOKEN }}
|
2020-06-20 14:18:06 -03:00
|
|
|
|
2020-11-19 12:07:47 -04:00
|
|
|
- name: check environment
|
|
|
|
run: |
|
|
|
|
export
|
|
|
|
ulimit -a
|
2020-06-20 21:04:11 -03:00
|
|
|
- name: ${{matrix.check}}
|
|
|
|
run: make ${{matrix.check}}
|
2021-01-27 11:08:19 -04:00
|
|
|
- name: upload coverage
|
|
|
|
if: contains(matrix.check, 'coverage')
|
|
|
|
uses: codecov/codecov-action@v1
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
|
|
flags: unittests
|
|
|
|
file: coverage/lcov.info
|