Skip to content

Commit

Permalink
fix(rules): add Deno Deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Oct 21, 2023
1 parent 19cb968 commit bc613d9
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 0 deletions.
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 @@ -120,6 +120,7 @@ exports[`all > should match everything 1`] = `
"datastax",
"deferrun",
"deno",
"denodeploy",
"dependabot",
"digitalocean",
"discord",
Expand Down
15 changes: 15 additions & 0 deletions src/rules/hosting/denodeploy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { register } from '../../register.js';

register({
tech: 'denodeploy',
name: 'Deno Deploy',
type: 'hosting',
dependencies: [
{ type: 'githubAction', name: 'denoland/deployctl' },
{
type: 'deno',
name: /\/x\/deploy(@[0-9.]+)?\/deployctl.ts/,
example: 'https://deno.land/x/[email protected]/deployctl.ts',
},
],
});
1 change: 1 addition & 0 deletions src/rules/hosting/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import './aws.lightsail.js';
import './azure.aks.js';
import './cloudflare.pages.js';
import './cloudflare.workers.js';
import './denodeploy.js';
import './digitalocean.js';
import './elasticcloud.js';
import './elasticstack.js';
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/deno/__snapshots__/lockfile.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,19 @@
exports[`deno > should match everything 1`] = `
[
"deno",
"denodeploy",
"postgresql",
"sqlite",
]
`;

exports[`deno > should match everything 2`] = `
[
[
"deno",
"https://deno.land/x/[email protected]/deployctl.ts",
"60cb4ec8bd335bf241ef785ccec51e809d576ff8e8d29da43d2273b69ce2a6ff",
],
[
"deno",
"https://deno.land/x/[email protected]/mod.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ exports[`docker > should match all dependencies 1`] = `
"cloudflare.workers",
"databricks",
"datadog",
"denodeploy",
"digitalocean",
"discord",
"elasticsearch",
Expand Down Expand Up @@ -360,6 +361,11 @@ exports[`docker > should match all dependencies 2`] = `
"datadog/agent-github-action",
"1",
],
[
"githubAction",
"denoland/deployctl",
"1",
],
[
"githubAction",
"digitalocean/action-doctl",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ export type AllowedKeys =
| 'datastax'
| 'deferrun'
| 'deno'
| 'denodeploy'
| 'dependabot'
| 'digitalocean'
| 'discord'
Expand Down

0 comments on commit bc613d9

Please sign in to comment.