Skip to content

Commit 48e4c49

Browse files
authored
Merge pull request #878 from giuseppe/codespell
tests: add codespell to the CI
2 parents b89168b + 22284a9 commit 48e4c49

File tree

5 files changed

+15
-2
lines changed

5 files changed

+15
-2
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:

crun.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ file system IDs that are mapped to the second value on the host. The
725725
length of this mapping is given in the third value.
726726

727727
.PP
728-
Multiple ranges are separed with \fB\fC#\fR\&.
728+
Multiple ranges are separated with \fB\fC#\fR\&.
729729

730730
.PP
731731
These values are written to the \fB\fC/proc/$PID/uid_map\fR and

crun.1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ For each triplet, the first value is the start of the backing
563563
file system IDs that are mapped to the second value on the host. The
564564
length of this mapping is given in the third value.
565565

566-
Multiple ranges are separed with `#`.
566+
Multiple ranges are separated with `#`.
567567

568568
These values are written to the `/proc/$PID/uid_map` and
569569
`/proc/$PID/gid_map` files to create the user namespace for the

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)