Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Sep 27, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,4 +150,4 @@ jobs:
run: sudo cmake --build builddir --target install
- name: Check Formatting
if: ${{ steps.setup.outputs.check_format == 'true' }}
run: cmake --build builddir --target format && git diff --submodule=diff --exit-code
run: cmake --build builddir --target format && git -C votca/${{ steps.setup.outputs.module }} diff --exit-code
46 changes: 46 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Format
on:
issue_comment:
types: [created]
jobs:
edit:
name: clang-format
if: ${{ github.event.comment.body == '@votca-bot format' }}
runs-on: ubuntu-latest
container: votca/buildenv:format
steps:
- name: Check if message comes from PR
uses: octokit/[email protected]
id: issue_info
with:
route: GET /repos/:repository/issues/:pull_number
repository: ${{ github.repository }}
pull_number: ${{ github.event.issue.number }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Get PR info
if: ${{ fromJSON(steps.issue_info.outputs.data).pull_request }}
uses: octokit/[email protected]
id: pr_info
with:
route: GET /repos/:repository/pulls/:pull_number
repository: ${{ github.repository }}
pull_number: ${{ github.event.issue.number }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout head branch from PR
if: ${{ fromJSON(steps.issue_info.outputs.data).pull_request }}
uses: actions/checkout@master
with:
repository: ${{ fromJSON(steps.pr_info.outputs.data).head.repo.full_name }}
ref: ${{ fromJSON(steps.pr_info.outputs.data).head.ref }}
token: ${{ secrets.VOTCA_BOT_TOKEN }}
- name: Run clang-format
if: ${{ fromJSON(steps.issue_info.outputs.data).pull_request }}
run: find . -type f -regex ".*\.\(c\|h\|cc\|cpp\|hpp\)" -print0 | xargs -0 clang-format -i -style=file
- name: Commit and push
if: ${{ fromJSON(steps.issue_info.outputs.data).pull_request }}
run: |
git config --global user.name "Votca Bot"
git config --global user.email "[email protected]"
git add -u
git commit -m "Format code using $(clang-format --version)" || true
git push
17 changes: 17 additions & 0 deletions .github/workflows/forward-to-votca.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Forward
on:
push:
branches:
- master
- stable

jobs:
VOTCA:
runs-on: ubuntu-latest
steps:
- name: Update submodule
uses: votca/actions/forward@master
with:
module: ${{ github.repository }}
token: ${{ secrets.VOTCA_BOT_TOKEN }}

2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ For more detailed information about the changes see the history of the
* make scripts always executable in builddir (#533, #550)
* rename REGRESSIONTEST_TOLERANCE to INTEGRATIONTEST_TOLERANCE (#534)
* standardising include order and style in library files (#542)
* move CI to GitHub Ations (#551)
* move CI to GitHub Ations (#551, #552)

## Version 1.6.1 (released XX.04.20)
* add support for cma-3 (#158)
Expand Down