Skip to content

Merge branch 'master' into release-prep-1.5.5 #81

Merge branch 'master' into release-prep-1.5.5

Merge branch 'master' into release-prep-1.5.5 #81

Workflow file for this run

name: lint-and-build
on: push
jobs:
clang-lint:
name: Lint code base
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Run clang-format-lint
uses: DoozyX/[email protected]
with:
source: '.'
exclude: './build'
clangFormatVersion: 10
inplace: True
- name: Check build
run: docker run -i --volume $GITHUB_WORKSPACE:/src/sg-bridge:z --workdir /src/sg-bridge fedora:latest /bin/sh -c 'sh ./build/build_checks.sh'
- name: Commit in-place changes based on linting recommendations
uses: EndBug/add-and-commit@v9
with:
author_name: InfraWatch CI
author_email: [email protected]
message: 'Committing clang-format changes'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
docker-build-check:
name: Check Dockerfile results in successful build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Check build of Dockerfile is successful
run: docker build -t sg-bridge:check-build -f build/Dockerfile .