make programming style check and doc info check a github action
This commit is contained in:
38
.github/workflows/style-check.yml
vendored
Normal file
38
.github/workflows/style-check.yml
vendored
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
# GitHub action to run checks from tools/coding_standard
|
||||||
|
name: "Check for Programming Style Conformance"
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- develop
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- develop
|
||||||
|
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.event_name }}-${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: ${{github.event_name == 'pull_request'}}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Programming Style Conformance
|
||||||
|
if: ${{ github.repository == 'lammps/lammps' }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 1
|
||||||
|
|
||||||
|
- name: Run Tests
|
||||||
|
working-directory: src
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
make check-whitespace
|
||||||
|
make check-permissions
|
||||||
|
make check-homepage
|
||||||
|
make check-error-docs
|
||||||
|
make check-docs
|
||||||
Reference in New Issue
Block a user