There was an error while loading. Please reload this page.
1 parent 2c0c280 commit 2024399Copy full SHA for 2024399
1 file changed
.github/workflows/ci.yml
@@ -7,6 +7,18 @@ on:
7
- main
8
9
jobs:
10
+ actionlint:
11
+ runs-on: ubuntu-latest
12
+ timeout-minutes: 10
13
+ permissions:
14
+ contents: read
15
+ steps:
16
+ - name: Checkout repository
17
+ uses: actions/checkout@v6
18
+
19
+ - name: Actionlint
20
+ uses: docker://rhysd/actionlint:1.7.12
21
22
test:
23
runs-on: ubuntu-latest
24
permissions:
@@ -15,6 +27,16 @@ jobs:
27
- name: Checkout repository
28
uses: actions/checkout@v6
29
30
+ - name: Check whitespace
31
+ run: |
32
+ set -euo pipefail
33
+ if [ "${{ github.event_name }}" = "pull_request" ]; then
34
+ git fetch --no-tags --depth=1 origin "${{ github.base_ref }}"
35
+ git diff --check "origin/${{ github.base_ref }}...HEAD"
36
+ else
37
+ git diff-tree --check --no-commit-id --root -r HEAD
38
+ fi
39
40
- name: Set up Python
41
uses: actions/setup-python@v6
42
with:
0 commit comments