Add buildroot utils/check-package check to the pr-checks.yml workflow. It checks for common errors/mistakes when creating own buildroot packages. Also fixed all warnings this utility output for our existing packages.
29 lines
685 B
YAML
29 lines
685 B
YAML
# Home Assistant Operating System pull-request checks
|
|
|
|
name: PR checks
|
|
|
|
on: [pull_request]
|
|
|
|
jobs:
|
|
linters:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@v2
|
|
with:
|
|
submodules: true
|
|
|
|
- name: Check Dockerfile
|
|
uses: brpaz/hadolint-action@v1.1.0
|
|
with:
|
|
dockerfile: Dockerfile
|
|
|
|
- name: Check shell scripts
|
|
uses: ludeeus/action-shellcheck@1.1.0
|
|
with:
|
|
ignore: buildroot buildroot-external/package/xe-guest-utilities
|
|
|
|
- name: Check buildroot-external packages
|
|
run: |
|
|
buildroot/utils/check-package --exclude PackageHeader --br2-external buildroot-external/package/*/*
|