Skip to content

Commit

Permalink
Update CI setup files to work for RHEL out of the box and add file fo…
Browse files Browse the repository at this point in the history
…r spell-check ignore words. (StoglRobotics#75)
  • Loading branch information
destogl authored Oct 6, 2022
1 parent 98f34ea commit 5642291
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions scripts/setup-repository-ci.bash
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ formatting=${formatting:="no"}
if [[ "$formatting" == "yes" ]]; then
cp -n ${PACKAGE_TEMPLATES}/.clang-format .
cp -n ${PACKAGE_TEMPLATES}/.pre-commit-config.yaml .
touch ".codespell-ignore-words.txt"
pre-commit install
pre-commit autoupdate
fi
Expand Down
2 changes: 1 addition & 1 deletion templates/package/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,5 +139,5 @@ repos:
rev: v2.1.0
hooks:
- id: codespell
args: ['--write-changes']
args: ['--ignore-words=.codespell-ignore-words.txt', '--write-changes']
exclude: CHANGELOG\.rst|\.(svg|pyc|drawio)$
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
env:
CCACHE_DIR: ${{ github.workspace }}/${{ inputs.ccache_dir }}
BASEDIR: ${{ github.workspace }}/${{ inputs.basedir }}
CACHE_PREFIX: ${{ inputs.ros_distro }}-${{ inputs.os_code_name }}-${{ inputs.ros_repo }}-${{ github.job }}
CACHE_PREFIX: ${{ inputs.ros_distro }}-${{ inputs.upstream_workspace }}-${{ inputs.ros_repo }}-${{ github.job }}
steps:
- name: Checkout ${{ inputs.ref }} when build is not scheduled
if: ${{ github.event_name != 'schedule' }}
Expand Down
2 changes: 1 addition & 1 deletion templates/package/CI-github_rhel-binary-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
env:
ROS_DISTRO: $ros_distro$
container: ghcr.io/ros-controls/ros:${{ env.ROS_DISTRO }}-rhel
container: ghcr.io/ros-controls/ros:$ros_distro$-rhel
steps:
- uses: actions/checkout@v3
with:
Expand Down

0 comments on commit 5642291

Please sign in to comment.