Skip to content

Commit 22284a9

Browse files
committed
tests: add codespell tests
Signed-off-by: Giuseppe Scrivano <[email protected]>
1 parent 37f13e3 commit 22284a9

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

.codespellrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[codespell]
2+
skip = libocispec,build-aux,contrib,*.1,.git,configure,Makefile,libtool,m4,autom4te.cache,*.m4,*.mk
3+
count =
4+
ignore-words-list = trun,ser
5+

.github/workflows/test.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ jobs:
6969
- test: clang-check
7070
- test: checkpoint-restore
7171
- test: fuzzing
72+
- test: codespell
7273
steps:
7374
- name: checkout
7475
uses: actions/checkout@v2
@@ -157,6 +158,10 @@ jobs:
157158
sudo docker build -t crun-fuzzing tests/fuzzing
158159
sudo docker run -e RUN_TIME=300 --privileged --rm -v /sys/fs/cgroup:/sys/fs/cgroup:rw,rslave -v ${PWD}:/crun crun-fuzzing
159160
;;
161+
codespell)
162+
sudo docker build -t crun-codespell tests/codespell
163+
sudo docker run --rm -w /crun -v ${PWD}:/crun:/crun crun-codespell codespell
164+
;;
160165
esac
161166
162167
shellcheck:

tests/codespell/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM fedora:latest
2+
3+
RUN yum install -y codespell && yum clean all -y

0 commit comments

Comments
 (0)