Skip to content

Commit

Permalink
Fix linter offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
gopidesupavan authored and randhircs committed Jan 16, 2025
1 parent c6ba49d commit 5463710
Show file tree
Hide file tree
Showing 2 changed files with 101 additions and 99 deletions.
154 changes: 77 additions & 77 deletions github_actions/spec/dependabot/github_actions/file_parser_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -589,17 +589,17 @@ def mock_service_pack_request(nwo)

let(:expected_requirements) do
[{
requirement: nil,
groups: [],
file: ".github/workflows/workflow.yml",
source: {
type: "git",
url: "https://github.com/gopidesupavan/monorepo-actions",
ref: "init/v1.0.0",
branch: nil
},
metadata: { declaration_string: "gopidesupavan/monorepo-actions/first/init@init/v1.0.0" }
}]
requirement: nil,
groups: [],
file: ".github/workflows/workflow.yml",
source: {
type: "git",
url: "https://github.com/gopidesupavan/monorepo-actions",
ref: "init/v1.0.0",
branch: nil
},
metadata: { declaration_string: "gopidesupavan/monorepo-actions/first/init@init/v1.0.0" }
}]
end

it "has the right details" do
Expand All @@ -615,17 +615,17 @@ def mock_service_pack_request(nwo)

let(:expected_requirements) do
[{
requirement: nil,
groups: [],
file: ".github/workflows/workflow.yml",
source: {
type: "git",
url: "https://github.com/gopidesupavan/monorepo-actions",
ref: "run/v2.0.0",
branch: nil
},
metadata: { declaration_string: "gopidesupavan/monorepo-actions/first/run@run/v2.0.0" }
}]
requirement: nil,
groups: [],
file: ".github/workflows/workflow.yml",
source: {
type: "git",
url: "https://github.com/gopidesupavan/monorepo-actions",
ref: "run/v2.0.0",
branch: nil
},
metadata: { declaration_string: "gopidesupavan/monorepo-actions/first/run@run/v2.0.0" }
}]
end

it "has the right details" do
Expand Down Expand Up @@ -665,17 +665,17 @@ def mock_service_pack_request(nwo)

let(:expected_requirements) do
[{
requirement: nil,
groups: [],
file: ".github/workflows/workflow.yml",
source: {
type: "git",
url: "https://github.com/gopidesupavan/monorepo-actions",
ref: "exec/1.0.0",
branch: nil
},
metadata: { declaration_string: "gopidesupavan/monorepo-actions/second/exec@exec/1.0.0" }
}]
requirement: nil,
groups: [],
file: ".github/workflows/workflow.yml",
source: {
type: "git",
url: "https://github.com/gopidesupavan/monorepo-actions",
ref: "exec/1.0.0",
branch: nil
},
metadata: { declaration_string: "gopidesupavan/monorepo-actions/second/exec@exec/1.0.0" }
}]
end

it "has the right details" do
Expand Down Expand Up @@ -716,17 +716,17 @@ def mock_service_pack_request(nwo)

let(:expected_requirements) do
[{
requirement: nil,
groups: [],
file: ".github/workflows/workflow.yml",
source: {
type: "git",
url: "https://github.com/gopidesupavan/monorepo-actions",
ref: "init/v1.0.0",
branch: nil
},
metadata: { declaration_string: "gopidesupavan/monorepo-actions/first/init@init/v1.0.0" }
}]
requirement: nil,
groups: [],
file: ".github/workflows/workflow.yml",
source: {
type: "git",
url: "https://github.com/gopidesupavan/monorepo-actions",
ref: "init/v1.0.0",
branch: nil
},
metadata: { declaration_string: "gopidesupavan/monorepo-actions/first/init@init/v1.0.0" }
}]
end

it "has the right details" do
Expand All @@ -742,17 +742,17 @@ def mock_service_pack_request(nwo)

let(:expected_requirements) do
[{
requirement: nil,
groups: [],
file: ".github/workflows/workflow.yml",
source: {
type: "git",
url: "https://github.com/actions/checkout",
ref: "v1",
branch: nil
},
metadata: { declaration_string: "actions/checkout@v1" }
}]
requirement: nil,
groups: [],
file: ".github/workflows/workflow.yml",
source: {
type: "git",
url: "https://github.com/actions/checkout",
ref: "v1",
branch: nil
},
metadata: { declaration_string: "actions/checkout@v1" }
}]
end

it "has the right details" do
Expand Down Expand Up @@ -793,17 +793,17 @@ def mock_service_pack_request(nwo)

let(:expected_requirements) do
[{
requirement: nil,
groups: [],
file: ".github/workflows/workflow.yml",
source: {
type: "git",
url: "https://github.com/gopidesupavan/monorepo-actions",
ref: "init/1.0.0",
branch: nil
},
metadata: { declaration_string: "gopidesupavan/monorepo-actions/first/init@init/1.0.0" }
}]
requirement: nil,
groups: [],
file: ".github/workflows/workflow.yml",
source: {
type: "git",
url: "https://github.com/gopidesupavan/monorepo-actions",
ref: "init/1.0.0",
branch: nil
},
metadata: { declaration_string: "gopidesupavan/monorepo-actions/first/init@init/1.0.0" }
}]
end

it "has the right details" do
Expand All @@ -819,17 +819,17 @@ def mock_service_pack_request(nwo)

let(:expected_requirements) do
[{
requirement: nil,
groups: [],
file: ".github/workflows/workflow.yml",
source: {
type: "git",
url: "https://github.com/actions/checkout",
ref: "v1",
branch: nil
},
metadata: { declaration_string: "actions/checkout@v1" }
}]
requirement: nil,
groups: [],
file: ".github/workflows/workflow.yml",
source: {
type: "git",
url: "https://github.com/actions/checkout",
ref: "v1",
branch: nil
},
metadata: { declaration_string: "actions/checkout@v1" }
}]
end

it "has the right details" do
Expand Down
46 changes: 24 additions & 22 deletions github_actions/spec/dependabot/github_actions/file_updater_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -536,17 +536,17 @@
version: "5273d0df9c603edc4284ac8402cf650b4f1f6686",
previous_version: nil,
requirements: [{
requirement: nil,
groups: [],
file: ".github/workflows/workflow.yml",
source: {
type: "git",
url: "https://github.com/gopidesupavan/monorepo-actions",
ref: "run/v3.0.0",
branch: nil
},
metadata: { declaration_string: "gopidesupavan/monorepo-actions/first/run@run/v2.0.0" }
}],
requirement: nil,
groups: [],
file: ".github/workflows/workflow.yml",
source: {
type: "git",
url: "https://github.com/gopidesupavan/monorepo-actions",
ref: "run/v3.0.0",
branch: nil
},
metadata: { declaration_string: "gopidesupavan/monorepo-actions/first/run@run/v2.0.0" }
}],
previous_requirements: [{
requirement: nil,
groups: [],
Expand All @@ -562,6 +562,7 @@
package_manager: "github_actions"
)
end

its(:content) { is_expected.to include "gopidesupavan/monorepo-actions/first/run@run/v3.0.0\n" }
end

Expand All @@ -576,17 +577,17 @@
version: "5273d0df9c603edc4284ac8402cf650b4f1f6686",
previous_version: nil,
requirements: [{
requirement: nil,
groups: [],
file: ".github/workflows/workflow.yml",
source: {
type: "git",
url: "https://github.com/gopidesupavan/monorepo-actions",
ref: "exec/2.0.0",
branch: nil
},
metadata: { declaration_string: "gopidesupavan/monorepo-actions/second/exec@exec/1.0.0" }
}],
requirement: nil,
groups: [],
file: ".github/workflows/workflow.yml",
source: {
type: "git",
url: "https://github.com/gopidesupavan/monorepo-actions",
ref: "exec/2.0.0",
branch: nil
},
metadata: { declaration_string: "gopidesupavan/monorepo-actions/second/exec@exec/1.0.0" }
}],
previous_requirements: [{
requirement: nil,
groups: [],
Expand All @@ -602,6 +603,7 @@
package_manager: "github_actions"
)
end

its(:content) { is_expected.to include "gopidesupavan/monorepo-actions/second/exec@exec/2.0.0\n" }
end
end
Expand Down

0 comments on commit 5463710

Please sign in to comment.