🔧 Add REUSE check

This commit is contained in:
Simon Schneegans
2022-09-16 17:52:57 +02:00
parent 0ff2679f6c
commit 18efd1e177
+14 -6
View File
@@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout Repository - name: Checkout Repository
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Download Clang-Format - name: Download Clang-Format
run: | run: |
sudo apt update -qq sudo apt update -qq
@@ -29,18 +29,26 @@ jobs:
DIFF=$(git diff) DIFF=$(git diff)
if [ ! -z "$DIFF" ]; then echo $DIFF && exit 1; fi if [ ! -z "$DIFF" ]; then echo $DIFF && exit 1; fi
reuse:
name: Check Compliance with REUSE Specification
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v1
comment_percentage: comment_percentage:
name: Check Comment Percentage name: Check Comment Percentage
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request'
steps: steps:
- name: Checkout Current Repository - name: Checkout Current Repository
uses: actions/checkout@v2 uses: actions/checkout@v3
with: with:
path: current path: current
ref: ${{ github.ref }} ref: ${{ github.ref }}
- name: Checkout Base Repository - name: Checkout Base Repository
uses: actions/checkout@v2 uses: actions/checkout@v3
with: with:
path: base path: base
ref: ${{ github.base_ref }} ref: ${{ github.base_ref }}
@@ -66,7 +74,7 @@ jobs:
name: Run ShellCheck name: Run ShellCheck
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Run ShellCheck - name: Run ShellCheck
run: | run: |
find $GITHUB_WORKSPACE -type f -and \( -name "*.sh" \) | xargs shellcheck find $GITHUB_WORKSPACE -type f -and \( -name "*.sh" \) | xargs shellcheck
@@ -77,7 +85,7 @@ jobs:
if: > if: >
github.event_name == 'push' && contains(github.event.head_commit.message, '[generate-references]') github.event_name == 'push' && contains(github.event.head_commit.message, '[generate-references]')
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Download Dependencies - name: Download Dependencies
run: | run: |
sudo apt update -qq sudo apt update -qq
@@ -112,7 +120,7 @@ jobs:
- 'gnome-xsession' - 'gnome-xsession'
- 'gnome-wayland-nested' - 'gnome-wayland-nested'
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Download Dependencies - name: Download Dependencies
run: | run: |
sudo apt update -qq sudo apt update -qq