diff options
author | Robert Adam <dev@robert-adam.de> | 2021-03-28 21:13:04 +0300 |
---|---|---|
committer | Robert Adam <dev@robert-adam.de> | 2021-03-28 21:17:38 +0300 |
commit | b48ca7caec6ca5eda3102e224437ee0b57de2e48 (patch) | |
tree | 698b6e9799a51573be7199319c7ee4f115adec31 /.github/workflows/checks.yml | |
parent | 2902913d688b487994907bdd2358edbacb624d58 (diff) |
CI: Added check to prevent CRLF endings
Diffstat (limited to '.github/workflows/checks.yml')
-rw-r--r-- | .github/workflows/checks.yml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml new file mode 100644 index 000000000..6a6dcaf9e --- /dev/null +++ b/.github/workflows/checks.yml @@ -0,0 +1,29 @@ +name: Checks + +on: [pull_request] + +jobs: + commit-check: + runs-on: ubuntu-20.04 + + steps: + + - name: Install Python + run: sudo apt install python3 + shell: bash + + - uses: actions/checkout@v2 + with: + # Assume that there are not >200 new commits that need checking + fetch-depth: 200 + # Don't checkout submodules + submodules: 'false' + # Don't create a merge commit + ref: ${{ github.event.pull_request.head.sha }} + + - name: Check commit style + run: $GITHUB_WORKSPACE/.github/workflows/check_commit_style.py + shell: bash + + - name: Check line endings + uses: erclu/check-crlf@v1 |