Skip to content

Fix pgport

Fix pgport #400

Workflow file for this run

name: Check files
# Makes a general check on the files
# Verifies:
# - the signatures are up-to-date
# - the release_notes and NEWS are consitent
# - the C/C++ files have a license
# - the shell scripts are ok
# - the code style is ok
# Does not makes a compilation
on: [push, pull_request]
permissions:
contents: read
jobs:
Signature_check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Signatures are not removed
run: |
tools/scripts/test_signatures.sh
News_check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: News file up to date
run: |
tools/release-scripts/notes2news.pl
if git status | grep 'NEWS'; then echo "NEWS is not up to date"; exit 1; fi
if ! grep -q $(grep -Po '(?<=project\(PGROUTING VERSION )[^;]+' CMakeLists.txt) NEWS; then echo "Missing section in NEWS"; exit 1; fi
License_check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Requirements
run: |
sudo apt install -y licensecheck
- name: Run License Check
run: ./tools/scripts/test_license.sh
Shell_check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Requirements
run: |
sudo apt install -y shellcheck
- name: Run Shell Check
run: ./tools/scripts/test_shell.sh
style-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Requirements
uses: actions/checkout@v3
with:
repository: 'cpplint/cpplint'
ref: "develop"
path: "code_linter/cpplint"
- name: Run linter
run: |
ls code_linter
bash ./tools/scripts/code_checker.sh