Skip to content

Commit 3a226a9

Browse files
committed
add format checker and spelling workflow
1 parent 76f599a commit 3a226a9

2 files changed

Lines changed: 44 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: test-clang-format
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: DoozyX/clang-format-lint-action@v0.20
17+
with:
18+
source: '.'
19+
extensions: 'h,c,cu'
20+
clangFormatVersion: 20

.github/workflows/spelling.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Spelling
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
push:
8+
branches: [main]
9+
pull_request:
10+
branches: [main]
11+
workflow_dispatch:
12+
13+
env:
14+
CLICOLOR: 1
15+
16+
jobs:
17+
spelling:
18+
name: Spell Check with Typos
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout Actions Repository
22+
uses: actions/checkout@v5
23+
- name: Spell Check Repo
24+
uses: crate-ci/typos@v1.42.3

0 commit comments

Comments
 (0)