* add FIMS_dmultinom distribution to match TMB #239
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Runs clang-format to format C++ code and then creates a PR to the branch | |
# which had changes and triggered this action. More details about clang-format | |
# can be found here: https://clang.llvm.org/docs/ClangFormat.html. To style C++ | |
# code in VS Code locally, you could follow the instructions on this website | |
# https://code.visualstudio.com/docs/editor/codebasics#_formatting to format | |
# the entire file or selected text. | |
name: run-clang-format | |
on: | |
push: | |
branches: | |
- dev | |
- main | |
workflow_dispatch: | |
jobs: | |
job: | |
name: run-clang-format | |
runs-on: ubuntu-latest | |
# Format hpp and cpp files under inst/include, src/, and test/gtest | |
# We use Google style to format code. | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DoozyX/[email protected] | |
with: | |
source: './inst/include ./src ./tests/gtest' | |
extensions: 'hpp, cpp' | |
style: Google | |
inplace: True | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v4 | |
with: | |
commit-message: 'style: run clang format' | |
token: ${{ secrets.PAT }} | |
branch: format-c++-code | |
title: 'format C++ code with clang format' | |
body: | | |
Auto-generated by [run-clang-format.yml][1] | |
[1]: https://github.com/NOAA-FIMS/FIMS/blob/main/.github/workflows/run-clang-format.yml |