Skip to content

Commit

Permalink
Merge pull request #45 from Rakshith-R/codespell
Browse files Browse the repository at this point in the history
 ci: add codespell github action
  • Loading branch information
k8s-ci-robot authored Oct 9, 2024
2 parents 6d15f15 + 7eafe24 commit 26a1118
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# GitHub Action to automate the identification of common misspellings in text files.
# https://github.com/codespell-project/actions-codespell
# https://github.com/codespell-project/codespell
name: codespell
on: [push, pull_request]
jobs:
codespell:
name: Check for spelling errors
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: codespell-project/actions-codespell@master
with:
check_filenames: true
skip: ./.git,./.github/workflows/codespell.yml,.git,*.png,*.jpg,*.svg,*.sum,./vendor,go.sum,./release-tools/prow.sh,./client/vendor
2 changes: 1 addition & 1 deletion pkg/internal/server/grpc/get_metadata_allocated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ func TestConvertToCSIGetMetadataAllocatedRequest(t *testing.T) {
expStatusMsgPat: fmt.Sprintf(msgUnavailableInvalidVolumeSnapshotStatusFmt, "snap-with-no-vsc"),
},
{
// VolumeSnapshotContent resource asssociated with snapshot doesn't exist
// VolumeSnapshotContent resource associated with snapshot doesn't exist
name: "snapshot-content-get-error",
apiRequest: &api.GetMetadataAllocatedRequest{
SnapshotName: "snap-content-doesnt-exist",
Expand Down
4 changes: 2 additions & 2 deletions pkg/internal/server/grpc/get_metadata_delta_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ func TestConvertToCSIGetMetadataDeltaRequest(t *testing.T) {
expStatusMsgPat: fmt.Sprintf(msgUnavailableInvalidVolumeSnapshotStatusFmt, "snap-with-no-vsc"),
},
{
// VolumeSnapshotContent resource asssociated with base snapshot doesn't exist
// VolumeSnapshotContent resource associated with base snapshot doesn't exist
name: "base-snapshot-content-get-error",
apiRequest: &api.GetMetadataDeltaRequest{
BaseSnapshotName: "snap-content-doesnt-exist",
Expand All @@ -469,7 +469,7 @@ func TestConvertToCSIGetMetadataDeltaRequest(t *testing.T) {
expStatusMsgPat: fmt.Sprintf(msgUnavailableFailedToGetVolumeSnapshotContentFmt, th.ContentNameFromSnapshot("snap-content-doesnt-exist"), "does not exist"),
},
{
// VolumeSnapshotContent resource asssociated with target snapshot doesn't exist
// VolumeSnapshotContent resource associated with target snapshot doesn't exist
name: "target-snapshot-content-get-error",
apiRequest: &api.GetMetadataDeltaRequest{
BaseSnapshotName: "snap-1",
Expand Down

0 comments on commit 26a1118

Please sign in to comment.