Skip to content

Allow for the passing of args and env... (#39) #76

Allow for the passing of args and env... (#39)

Allow for the passing of args and env... (#39) #76

name: Check Code Style
# We use action's triggers 'push' and 'pull_request'.
# The strategy is the following: this action will be
# triggered on any push to 'main' branch and any pull
# request to any branch. Thus we avoid duplicate work-
# flows.
on:
push:
branches:
- "main"
pull_request:
branches:
- "**"
jobs:
check_code_style:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-20.04"]
steps:
# We should checkout the repo with submodules
# cause we need to have symlink to
# dev-tools/.clang-format file for all code
# style checks.
- uses: actions/checkout@v2
with:
# We don't need special credentials since this is a public repo
# that only depends on other public repos.
submodules: "recursive"
# Call the composite action to check files
# for correct code style. This action (action.yml)
# is in `dev-tools` submodule.
- uses: ./submodules/dev-tools/check-code-style
with:
os: ${{matrix.os}}