Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add license headers validation #458

Merged
merged 25 commits into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
01c830c
Add .licenserc.yaml file
artemgavrilov Apr 22, 2024
70b0872
Fix license headers
artemgavrilov Apr 22, 2024
3b124a7
Add github action to check license headers
artemgavrilov Apr 22, 2024
22514ef
Fix workflow
artemgavrilov Apr 22, 2024
bc7781d
Merge remote-tracking branch 'origin/main' into license-headers
artemgavrilov Apr 24, 2024
83d93a6
Fix checkout path
artemgavrilov Apr 24, 2024
bcdc021
Rename workflow
artemgavrilov Apr 24, 2024
f1330b3
Add debug info
artemgavrilov Apr 24, 2024
2e2ead2
Disable workflows
artemgavrilov Apr 24, 2024
025cf6a
Try fix
artemgavrilov Apr 24, 2024
7e325ff
Split check workflow in two jobs
artemgavrilov Apr 25, 2024
6566de7
Merge remote-tracking branch 'origin/main' into license-headers
artemgavrilov Apr 25, 2024
0cc0c88
Try invalid license header
artemgavrilov Apr 25, 2024
f6ed990
Comment of failure
artemgavrilov Apr 25, 2024
10f5537
Disable cppcheck job
artemgavrilov Apr 25, 2024
7efb33e
Fix licenserc file
artemgavrilov Apr 25, 2024
88d46c8
Enable debug logging
artemgavrilov Apr 25, 2024
7f9d690
Prevent comments from licence-eye
artemgavrilov Apr 25, 2024
d1dee75
Revert "Disable cppcheck job"
artemgavrilov Apr 25, 2024
a4ab869
Revert "Disable workflows"
artemgavrilov Apr 25, 2024
ce15fb2
Fix typo
artemgavrilov Apr 25, 2024
4d8993c
Revert "Try invalid license header"
artemgavrilov Apr 25, 2024
dae8523
Update year in license headers
artemgavrilov Apr 25, 2024
c678b00
Cleanup
artemgavrilov Apr 25, 2024
ebc41c2
Fix indention in license header
artemgavrilov Apr 25, 2024
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
49 changes: 49 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Checks
on:
pull_request:

jobs:
# cppcheck:
# name: Cppcheck
# runs-on: ubuntu-22.04

# steps:
# - name: Checkout sources
# uses: actions/checkout@v4
# with:
# path: src/pg_stat_monitor

# - name: Checkout cppcheck sources
# uses: actions/checkout@v4
# with:
# repository: "danmar/cppcheck"
# ref: "2.13.4"
# path: src/cppcheck

# - name: Build and install cppcheck
# working-directory: src/cppcheck
# run: |
# mkdir build
# cd build
# cmake ..
# cmake --build .
# sudo cmake --install .

# - name: Execute linter check with cppcheck
# working-directory: src/pg_stat_monitor
# run: |
# set -x
# cppcheck --enable=all --inline-suppr --template='{file}:{line},{severity},{id},{message}' --error-exitcode=1 --suppress=missingIncludeSystem --suppress=missingInclude --suppress=unmatchedSuppression:pg_stat_monitor.c --check-config .

licens:
name: License
runs-on: ubuntu-22.04

steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Check license headers
uses: apache/skywalking-eyes/[email protected]
with:
log: debug
144 changes: 0 additions & 144 deletions .github/workflows/code-coverage-test.yml

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/cppcheck.yml

This file was deleted.

127 changes: 0 additions & 127 deletions .github/workflows/postgresql-11-build.yml

This file was deleted.

Loading
Loading