Skip to content

Commit 279e2d6

Browse files
authored
Merge pull request hathach#1774 from hathach/add-codespell
Add codespell to ci run
2 parents d6d2499 + feed1a8 commit 279e2d6

File tree

10 files changed

+79
-21
lines changed

10 files changed

+79
-21
lines changed

.codespell/exclude-file.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
return USB0.INTSTS1.BIT.ATTCH ? true : false;

.codespell/ignore-words.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
synopsys
2+
sie
3+
tre
4+
hsi
5+
fro
6+
dout
7+
mot
8+
te

.codespellrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# See: https://github.com/codespell-project/codespell#using-a-config-file
2+
[codespell]
3+
# In the event of a false positive, add the problematic word, in all lowercase, to 'ignore-words.txt' (one word per line).
4+
# Or copy & paste the whole problematic line to 'exclude-file.txt'
5+
ignore-words = .codespell/ignore-words.txt
6+
exclude-file = .codespell/exclude-file.txt
7+
check-filenames =
8+
check-hidden =
9+
count =
10+
skip = .cproject,./.git,./hw/mcu,./lib,./examples/*/*/_build,./examples/*/*/ses,./examples/*/*/ozone,./hw/mcu,./test/vendor,./tests_obsolete,./tools/uf2

.github/workflows/build_aarch64.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
types:
88
- created
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
12+
cancel-in-progress: true
13+
1014
jobs:
1115
# ---------------------------------------
1216
# Build AARCH64 family

.github/workflows/build_arm.yml

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,11 @@ on:
77
types:
88
- created
99

10-
jobs:
11-
# ---------------------------------------
12-
# Unit testing with Ceedling
13-
# ---------------------------------------
14-
unit-test:
15-
runs-on: ubuntu-latest
16-
steps:
17-
- name: Setup Ruby
18-
uses: ruby/setup-ruby@v1
19-
with:
20-
ruby-version: '2.7'
21-
22-
- name: Checkout TinyUSB
23-
uses: actions/checkout@v3
24-
25-
- name: Unit Tests
26-
run: |
27-
# Install Ceedling
28-
gem install ceedling
29-
cd test
30-
ceedling test:all
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
12+
cancel-in-progress: true
3113

14+
jobs:
3215
# ---------------------------------------
3316
# Build ARM family
3417
# ---------------------------------------

.github/workflows/build_esp.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
types:
88
- created
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
12+
cancel-in-progress: true
13+
1014
jobs:
1115
build-esp:
1216
runs-on: ubuntu-latest

.github/workflows/build_msp430.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
types:
88
- created
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
12+
cancel-in-progress: true
13+
1014
jobs:
1115
build-msp430:
1216
runs-on: ubuntu-latest

.github/workflows/build_renesas.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
types:
88
- created
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
12+
cancel-in-progress: true
13+
1014
jobs:
1115
build-rx:
1216
runs-on: ubuntu-latest

.github/workflows/build_riscv.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
types:
88
- created
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
12+
cancel-in-progress: true
13+
1014
jobs:
1115
build-riscv:
1216
runs-on: ubuntu-latest

.github/workflows/pre-commit.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: pre-commit
2+
3+
on:
4+
pull_request:
5+
push:
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
9+
cancel-in-progress: true
10+
11+
jobs:
12+
pre-commit:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Setup Python
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: '3.x'
19+
20+
- name: Setup Ruby
21+
uses: ruby/setup-ruby@v1
22+
with:
23+
ruby-version: '2.7'
24+
25+
- name: Checkout TinyUSB
26+
uses: actions/checkout@v3
27+
28+
- name: Run codespell
29+
uses: codespell-project/actions-codespell@master
30+
31+
- name: Run Unit Tests
32+
run: |
33+
# Install Ceedling
34+
gem install ceedling
35+
cd test
36+
ceedling test:all

0 commit comments

Comments
 (0)