mirror of
https://github.com/st-tu-dresden-praktikum/swt23w23
synced 2024-07-19 21:04:36 +02:00
Simon Bruder
bac025fd0a
This finally makes the licensing under AGPL-3.0-or-later explicit after I got the okay from the kickstart source owners. This also checks the REUSE compliance in a pre commit hook, and therefore also in CI.
32 lines
845 B
YAML
32 lines
845 B
YAML
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
# SPDX-FileCopyrightText: 2023 swt23w23
|
|
name: Checks
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
pre-commit:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v3
|
|
- uses: pre-commit/action@v3.0.0
|
|
|
|
gitlint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.sha }} # otherwise it thinkgs merging is a good idea
|
|
fetch-depth: 0 # required so gitlint can compare a range
|
|
- uses: actions/setup-python@v3
|
|
- name: Install gitlint
|
|
run: pip install gitlint==0.19.1
|
|
- name: gitlint
|
|
if: github.event_name == 'pull_request'
|
|
run: |
|
|
gitlint --commits remotes/origin/$GITHUB_BASE_REF..remotes/origin/$GITHUB_HEAD_REF
|