Skip to content

Commit

Permalink
Add check for pull requests (GitHub action)
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Jul 16, 2022
1 parent bd7aecb commit 42fa4b6
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/pr_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Check pull requests.

name: Check pull request

# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows
on:
# Trigger workflow on pull request.
pull_request:
# branches: [ ci ]

jobs:
check_pull_request:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Check for whitespace issues.
run: git diff --check HEAD^
# TODO: Add more checks here (codespell, ...).

0 comments on commit 42fa4b6

Please sign in to comment.