fix(MAVFTP): prevent MAVFTP write path crashes for empty files and No… #797
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Docker CI | |
| on: | |
| push: | |
| branches: [ master ] | |
| paths: | |
| - 'Dockerfile' | |
| - 'docker-compose.yml' | |
| - '.github/workflows/docker-ci.yml' | |
| - 'ardupilot_methodic_configurator/**' | |
| - 'tests/**' | |
| - 'scripts/**' | |
| - 'pyproject.toml' | |
| pull_request: | |
| branches: [ master ] | |
| paths: | |
| - 'Dockerfile' | |
| - 'docker-compose.yml' | |
| - '.github/workflows/docker-ci.yml' | |
| - 'ardupilot_methodic_configurator/**' | |
| - 'tests/**' | |
| - 'scripts/**' | |
| - 'pyproject.toml' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| docker-test: | |
| name: Docker Build and Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout code | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4.1.0 | |
| - name: Build and Run Tests | |
| run: | | |
| docker compose run --rm test | |
| - name: Run Linter in Docker | |
| if: always() | |
| run: | | |
| docker compose run --rm lint | |
| - name: Cleanup | |
| if: always() | |
| run: | | |
| docker compose down --volumes --remove-orphans |