diff --git a/{{cookiecutter.project_slug}}/.github/workflows/ci.yml b/{{cookiecutter.project_slug}}/.github/workflows/ci.yml index 2934245..e1b0dce 100644 --- a/{{cookiecutter.project_slug}}/.github/workflows/ci.yml +++ b/{{cookiecutter.project_slug}}/.github/workflows/ci.yml @@ -79,21 +79,21 @@ jobs: {%- endif %} - name: make build directory - run: cmake -E make_directory ${{ "{{runner.workspace}}" }}/build + run: cmake -E make_directory ${{ "{{ github.workspace }}" }}/build - name: configure cmake shell: bash - working-directory: ${{ "{{runner.workspace}}" }}/build + working-directory: ${{ "{{ github.workspace }}" }}/build run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=Debug -DBUILD_DOCS=OFF - name: build shell: bash - working-directory: ${{ "{{runner.workspace}}" }}/build + working-directory: ${{ "{{ github.workspace }}" }}/build run: cmake --build . - name: run tests shell: bash - working-directory: ${{ "{{runner.workspace}}" }}/build + working-directory: ${{ "{{ github.workspace }}" }}/build run: ctest {%- if cookiecutter.python_bindings == "Yes" %} python-testing: @@ -183,26 +183,26 @@ jobs: {%- endif %} - name: make build directory - run: cmake -E make_directory ${{ "{{runner.workspace}}" }}/build + run: cmake -E make_directory ${{ "{{ github.workspace }}" }}/build - name: configure cmake shell: bash - working-directory: ${{ "{{runner.workspace}}" }}/build + working-directory: ${{ "{{ github.workspace }}" }}/build run: cmake $GITHUB_WORKSPACE -DCMAKE_CXX_FLAGS="--coverage" -DBUILD_DOCS=OFF - name: build shell: bash - working-directory: ${{ "{{runner.workspace}}" }}/build + working-directory: ${{ "{{ github.workspace }}" }}/build run: cmake --build . - name: run tests shell: bash - working-directory: ${{ "{{runner.workspace}}" }}/build + working-directory: ${{ "{{ github.workspace }}" }}/build run: ctest - name: collect coverage report shell: bash - working-directory: ${{ "{{runner.workspace}}" }} + working-directory: ${{ "{{ github.workspace }}" }} run: | lcov --directory ./build{% if cookiecutter.header_only == "No" %}/src{% endif %} --capture --output-file coverage.info diff --git a/{{cookiecutter.project_slug}}/.pre-commit-config.yaml b/{{cookiecutter.project_slug}}/.pre-commit-config.yaml index c3f8d9a..eca991b 100644 --- a/{{cookiecutter.project_slug}}/.pre-commit-config.yaml +++ b/{{cookiecutter.project_slug}}/.pre-commit-config.yaml @@ -39,3 +39,11 @@ repos: hooks: - id: cmake-format - id: cmake-lint +{%- if cookiecutter.github_actions_ci == "Yes" %} + + # GitHub Actions Workflow linter + - repo: https://github.com/rhysd/actionlint + rev: v1.6.25 + hooks: + - id: actionlint +{%- endif %}