Skip to content

Commit 42fa4b6

Browse files
committed
Add check for pull requests (GitHub action)
Signed-off-by: Stefan Weil <[email protected]>
1 parent bd7aecb commit 42fa4b6

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/pr_check.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Check pull requests.
2+
3+
name: Check pull request
4+
5+
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows
6+
on:
7+
# Trigger workflow on pull request.
8+
pull_request:
9+
# branches: [ ci ]
10+
11+
jobs:
12+
check_pull_request:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
with:
18+
fetch-depth: 2
19+
- name: Check for whitespace issues.
20+
run: git diff --check HEAD^
21+
# TODO: Add more checks here (codespell, ...).

0 commit comments

Comments
 (0)