Skip to content

Commit 7b013a8

Browse files
Madhu-1nb-ohad
authored andcommitted
ci: install the tools required for linting
Its not possible to get the third party github action to be used automatically in the ceph org, All the actions need to be audited, The currently used one are having problems, Replacing it with our own until we find a fix for using third party actions again. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
1 parent 108b75c commit 7b013a8

File tree

1 file changed

+24
-26
lines changed

1 file changed

+24
-26
lines changed

.github/workflows/lint.yaml

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,19 @@ jobs:
2323
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2424
with:
2525
fetch-depth: 1
26-
- name: codespell
27-
uses: codespell-project/actions-codespell@fad9339798e1ee3fe979ae0a022c931786a408b8 # master
28-
with:
29-
skip: .git,*.sum,vendor
30-
ignore_words_list: AfterAll,NotIn,notin,immediatedly
31-
check_filenames: true
32-
check_hidden: true
33-
misspell:
34-
name: misspell
35-
runs-on: ubuntu-latest
36-
steps:
37-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
38-
with:
39-
fetch-depth: 1
40-
- name: misspell
41-
uses: reviewdog/action-misspell@9daa94af4357dddb6fd3775de806bc0a8e98d3e4 # v1.26.3
42-
with:
43-
exclude: ./vendor/*
26+
- name: Set up Python
27+
run: |
28+
sudo apt install -y python3 python3-pip
29+
30+
- name: Install specific version of codespell
31+
run: |
32+
pip3 install codespell==2.4.1
33+
34+
- name: Run codespell
35+
run: |
36+
codespell \
37+
--ignore-words-list="AfterAll,NotIn,notin,immediatedly" \
38+
--skip=".git,*.sum,vendor"
4439
4540
golangci:
4641
name: golangci-lint
@@ -84,14 +79,17 @@ jobs:
8479
runs-on: ubuntu-latest
8580
steps:
8681
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
87-
- name: Run ShellCheck
88-
uses: ludeeus/action-shellcheck@00b27aa7cb85167568cb48a3838b75f4265f2bca # master
89-
with:
90-
severity: warning
91-
check_together: 'yes'
92-
ignore_paths: 'vendor'
93-
disable_matcher: false
94-
format: gcc
82+
- name: Install shellcheck via apt
83+
run: |
84+
sudo apt update
85+
sudo apt install -y shellcheck
86+
shellcheck --version
87+
88+
- name: Run shellcheck on all .sh files
89+
run: |
90+
find . -type f -name "*.sh" \
91+
! -path "./vendor/*" \
92+
-exec shellcheck {} +
9593
9694
modcheck:
9795
name: modcheck

0 commit comments

Comments
 (0)