38 lines
819 B
YAML
38 lines
819 B
YAML
# 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-errordocs
|