Skip to content

Commit

Permalink
fix(rules): add GCP App Engine
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Sep 15, 2023
1 parent b101bed commit 0da2814
Show file tree
Hide file tree
Showing 10 changed files with 56 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 @@ -94,6 +94,7 @@ exports[`all > should match everything 1`] = `
"flyio",
"gcp",
"gcp.aiplatform",
"gcp.appengine",
"gcp.bigquery",
"gcp.bigtable",
"gcp.cloudbuild",
Expand Down
22 changes: 22 additions & 0 deletions src/rules/hosting/gcp.appengine.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { register } from '../../register.js';

register({
tech: 'gcp.appengine',
name: 'Google App Engine',
type: 'hosting',
dependencies: [
{ type: 'npm', name: '@google-cloud/appengine-admin' },
{
type: 'terraform.resource',
name: /^google_app_engine_/,
example: 'google_app_engine_application',
},
{ type: 'ruby', name: 'appengine' },
{ type: 'golang', name: 'cloud.google.com/go/appengine' },
{ type: 'php', name: 'google/appengine-php-sdk' },
{
type: 'githubAction',
name: 'google-github-actions/deploy-appengine',
},
],
});
1 change: 1 addition & 0 deletions src/rules/hosting/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import './expodev.js';
import './fastly.js';
import './firebase.js';
import './flyio.js';
import './gcp.appengine.js';
import './gcp.cloudrun.js';
import './gcp.functions.js';
import './gcp.gce.js';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ exports[`docker > should match all dependencies 1`] = `
"firebase",
"flyio",
"gcp",
"gcp.appengine",
"gcp.cloudrun",
"gcp.functions",
"gcp.gce",
Expand Down Expand Up @@ -311,6 +312,11 @@ exports[`docker > should match all dependencies 2`] = `
"google-github-actions/auth",
"1",
],
[
"githubAction",
"google-github-actions/deploy-appengine",
"1",
],
[
"githubAction",
"google-github-actions/deploy-cloud-functions",
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/golang/__snapshots__/lockfile.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ exports[`golang (lockfile) > should match everything 1`] = `
"elasticsearch",
"gcp",
"gcp.aiplatform",
"gcp.appengine",
"gcp.bigquery",
"gcp.bigtable",
"gcp.cloudrun",
Expand Down Expand Up @@ -55,6 +56,11 @@ exports[`golang (lockfile) > should match everything 2`] = `
"cloud.google.com/go/aiplatform",
"v1.0.0",
],
[
"golang",
"cloud.google.com/go/appengine",
"v1.0.0",
],
[
"golang",
"cloud.google.com/go/bigquery",
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/nodejs/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ exports[`npm > should match everything 1`] = `
"firebase",
"gcp",
"gcp.aiplatform",
"gcp.appengine",
"gcp.bigquery",
"gcp.bigtable",
"gcp.cloudbuild",
Expand Down Expand Up @@ -328,6 +329,11 @@ exports[`npm > should match everything 2`] = `
"@google-cloud/aiplatform",
"0.0.0",
],
[
"npm",
"@google-cloud/appengine-admin",
"0.0.0",
],
[
"npm",
"@google-cloud/bigquery",
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/php/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ exports[`php > should match everything 1`] = `
"firebase.firestore",
"gcp",
"gcp.aiplatform",
"gcp.appengine",
"gcp.bigquery",
"gcp.bigtable",
"gcp.cloudbuild",
Expand Down Expand Up @@ -336,6 +337,11 @@ exports[`php > should match everything 2`] = `
"google/analytics-data",
"0.0.0",
],
[
"php",
"google/appengine-php-sdk",
"0.0.0",
],
[
"php",
"google/cloud",
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/ruby/__snapshots__/lockfile.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ exports[`ruby (component) > should match everything 1`] = `
"firebase",
"gcp",
"gcp.aiplatform",
"gcp.appengine",
"gcp.bigquery",
"gcp.bigtable",
"gcp.cloudrun",
Expand Down Expand Up @@ -106,6 +107,11 @@ exports[`ruby (component) > should match everything 2`] = `
"algoliasearch-rails",
"1.0.0",
],
[
"ruby",
"appengine",
"1.0.0",
],
[
"ruby",
"auth0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ exports[`terraform (resource) > should match everything 1`] = `
"firebase.firestore",
"gcp",
"gcp.aiplatform",
"gcp.appengine",
"gcp.bigquery",
"gcp.bigtable",
"gcp.cloudbuild",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ export type AllowedKeys =
| 'firebase'
| 'flyio'
| 'gcp.aiplatform'
| 'gcp.appengine'
| 'gcp.bigquery'
| 'gcp.bigtable'
| 'gcp.cloudbuild'
Expand Down

0 comments on commit 0da2814

Please sign in to comment.