This repository has been archived by the owner on Nov 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Github Workflow Actions for Nodejs * Update nodejs.yml * Update package.json * Vue code cleanup * Add App Engine Deployment Files * Lint fixes * Fix and Extend Tests * Updating README with additional claraficiations * Update Explain Proto and GRPC calls to handle streaming responses * Removal of cached and json data options. * Comment clean-up * Deleting ResourceNode file
- Loading branch information
1 parent
e7f875b
commit 88be99c
Showing
34 changed files
with
443 additions
and
3,258 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | ||
|
||
name: Node.js CI | ||
|
||
on: | ||
push: | ||
branches: [ master, dev, actions ] | ||
pull_request: | ||
branches: [ master, dev, actions ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
env: | ||
ui-dir: ./forseti-visualizer-ui | ||
api-dir: ./forseti-api | ||
|
||
strategy: | ||
matrix: | ||
node-version: [10.x, 12.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Install Packages | ||
working-directory: ./forseti-visualizer-ui | ||
run: npm install | ||
- name: Run Build | ||
working-directory: ./forseti-visualizer-ui | ||
run: npm run build --if-present | ||
- name: Run Test | ||
working-directory: ./forseti-visualizer-ui | ||
run: npm test | ||
- name: Install Packaages | ||
working-directory: ./forseti-api | ||
run: npm install | ||
- name: Run Build | ||
working-directory: ./forseti-api | ||
run: npm run build --if-present | ||
- name: Run Test | ||
working-directory: ./forseti-api | ||
run: npm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# [START gae_flex_quickstart_yaml] | ||
runtime: custom | ||
env: flex | ||
env_variables: | ||
API_HOST: "0.0.0.0" | ||
API_PORT: "8080" | ||
CLOUDSQL_HOSTNAME: "172.17.0.1" | ||
CLOUDSQL_USERNAME: "root" | ||
CLOUDSQL_PASSWORD: "" | ||
CLOUDSQL_SCHEMA: "forseti_security" | ||
FORSETI_SERVER_VM_CHANNEL: "35.232.32.159:50051" | ||
FORSETI_DATA_MODEL_HANDLE: "f240aa3a5bc9fd9acfaf50fdd3620534" | ||
PROJECT_ID: "forsetivisualizer" | ||
|
||
beta_settings: | ||
cloud_sql_instances: devops-shared-vpc:us-central1:forseti-server-db-4ebc72af=tcp:3306 | ||
|
||
# This sample incurs costs to run on the App Engine flexible environment. | ||
# The settings below are to reduce costs during testing and are not appropriate | ||
# for production use. For more information, see: | ||
# https://cloud.google.com/appengine/docs/flexible/nodejs/configuring-your-app-with-app-yaml | ||
manual_scaling: | ||
instances: 1 | ||
resources: | ||
cpu: 1 | ||
memory_gb: 0.5 | ||
disk_size_gb: 10 | ||
network: | ||
instance_tag: tag-name | ||
name: projects/devops-shared-vpc/global/networks/default | ||
subnetwork_name: default | ||
|
||
# [END gae_flex_quickstart_yaml] | ||
|
||
|
||
## KNOWN ISSUES: | ||
## projects without the -compute@ default account | ||
## ERROR: (gcloud.app.deploy) Error Response: [13] An internal error occurred while creating a Google Cloud Storage bucket. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.