Skip to content

Commit eeaffc6

Browse files
committed
Add copier-lint job to ci_tests template
The exemplar's ci_tests.yml carried a copier-lint job that the template did not generate, causing check_copier.sh consistency check to fail. Add the job to the template inside the generating_exemplar block so stamped output matches the source.
1 parent 255e5b4 commit eeaffc6

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

template/.github/workflows/ci_tests.yml.jinja

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,22 @@ jobs:
3939
# gcc-release will use GCC 15 which supports C++23 modules appropriately in this container
4040
run: ./copier/test_standard_project.sh gcc-release
4141

42+
copier-lint:
43+
runs-on: ubuntu-latest
44+
steps:
45+
- uses: actions/checkout@v4
46+
- name: Install uv
47+
shell: bash
48+
run: |
49+
curl -LsSf https://astral.sh/uv/install.sh | sh
50+
echo "$HOME/.local/bin" >> $GITHUB_PATH
51+
- name: Generated project self-lints cleanly
52+
shell: bash
53+
# Verify a freshly generated standard project passes its own
54+
# pre-commit config (gersemi, clang-format, beman-tidy) on the first
55+
# run, exercising copier/format_project.sh.
56+
run: ./copier/lint_standard_project.sh my_project
57+
4258
copier-cmake-matrix:
4359
runs-on: ubuntu-latest
4460
container:

0 commit comments

Comments
 (0)