Skip to content

Commit 1534d0d

Browse files
committed
test: add codespell shellcheck github actions
1 parent fa6a7d2 commit 1534d0d

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

.github/workflows/codespell.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# GitHub Action to automate the identification of common misspellings in text files.
2+
# https://github.com/codespell-project/actions-codespell
3+
# https://github.com/codespell-project/codespell
4+
name: codespell
5+
on: [push, pull_request]
6+
jobs:
7+
codespell:
8+
name: Check for spelling errors
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: codespell-project/actions-codespell@master
13+
with:
14+
check_filenames: true
15+
skip: ./.git,./.github/workflows/codespell.yml,.git,*.png,*.jpg,*.svg,*.sum,./vendor,go.sum,./release-tools/prow.sh,./pkg/lib/iscsi/
16+
ignore_words_list: "lun,targetportal"

.github/workflows/shellcheck.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: ShellCheck
2+
on:
3+
push:
4+
tags:
5+
- v*
6+
branches:
7+
- master
8+
- release-*
9+
pull_request:
10+
branches:
11+
- master
12+
- release-*
13+
14+
jobs:
15+
shellcheck:
16+
name: Shellcheck
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: Run ShellCheck
21+
uses: ludeeus/action-shellcheck@master
22+
env:
23+
SHELLCHECK_OPTS: -e SC2034
24+
with:
25+
severity: warning
26+
check_together: 'yes'
27+
disable_matcher: false
28+
ignore_paths: vendor release-tools hack
29+
format: gcc

0 commit comments

Comments
 (0)