Skip to content

Commit

Permalink
fix(rules): add Coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Sep 13, 2023
1 parent e7325af commit ccb4352
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/rules/__snapshots__/ci.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ exports[`ci > should match everything 1`] = `
"cirrusci",
"codecov",
"codesandboxci",
"coveralls",
"cypressci",
"dependabot",
"github.actions",
Expand Down
1 change: 1 addition & 0 deletions src/rules/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ exports[`all > should match everything 1`] = `
"codesandboxci",
"contenful",
"couchbase",
"coveralls",
"crowdin",
"cypressci",
"databricks",
Expand Down
18 changes: 18 additions & 0 deletions src/rules/ci/coveralls.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { register } from '../../register.js';

register({
tech: 'coveralls',
name: 'Coveralls',
type: 'ci',
files: ['.codecov.yml', 'codecov.yml'],
dependencies: [
{ type: 'githubAction', name: 'coverallsapp/github-action' },
{
type: 'npm',
name: 'node-coveralls',
},
{ type: 'golang', name: 'goveralls' },
{ type: 'npm', name: 'php-coveralls' },
{ type: 'ruby', name: 'coveralls-ruby-reborn' },
],
});
1 change: 1 addition & 0 deletions src/rules/ci/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import './circleci.js';
import './cirrusci.js';
import './codecov.js';
import './codesandboxci.js';
import './coveralls.js';
import './cypressci.js';
import './dependabot.js';
import './gitlab.ci.js';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,11 @@ exports[`docker > should match all dependencies 2`] = `
"codecov/codecov-action",
"1",
],
[
"githubAction",
"coverallsapp/github-action",
"1",
],
[
"githubAction",
"cypress-io/github-action",
Expand Down
5 changes: 5 additions & 0 deletions src/rules/spec/golang/__snapshots__/lockfile.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -259,5 +259,10 @@ exports[`golang (lockfile) > should match everything 2`] = `
"github.com/splitio/go-client/v6",
"v1.0.0",
],
[
"golang",
"goveralls",
"v1.0.0",
],
]
`;
11 changes: 11 additions & 0 deletions src/rules/spec/nodejs/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ exports[`npm > should match everything 1`] = `
"cloudflare",
"contenful",
"couchbase",
"coveralls",
"crowdin",
"cypressci",
"datadog",
Expand Down Expand Up @@ -963,6 +964,11 @@ exports[`npm > should match everything 2`] = `
"next",
"0.0.0",
],
[
"npm",
"node-coveralls",
"0.0.0",
],
[
"npm",
"node-mailjet",
Expand Down Expand Up @@ -993,6 +999,11 @@ exports[`npm > should match everything 2`] = `
"pg",
"0.0.0",
],
[
"npm",
"php-coveralls",
"0.0.0",
],
[
"npm",
"postman-collection",
Expand Down
5 changes: 5 additions & 0 deletions src/rules/spec/ruby/__snapshots__/lockfile.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,11 @@ exports[`ruby (component) > should match everything 2`] = `
"couchbase",
"1.0.0",
],
[
"ruby",
"coveralls-ruby-reborn",
"1.0.0",
],
[
"ruby",
"cypress-on-rails",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export type AllowedKeys =
| 'codesandboxci'
| 'contenful'
| 'couchbase'
| 'coveralls'
| 'cplusplus'
| 'crowdin'
| 'csharp'
Expand Down

0 comments on commit ccb4352

Please sign in to comment.