-
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add playground-api for runner (#632)
* Add playground-api for runner * set up proper iam scopes * setup paths-ignore
- Loading branch information
Showing
12 changed files
with
9,855 additions
and
0 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,40 @@ | ||
name: "Deploy playground API" | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- '.github/workflows/deploy-playground-api.yml' | ||
- 'playground-api/**' | ||
|
||
concurrency: playground_api | ||
|
||
jobs: | ||
deploy: | ||
name: "Build & deploy" | ||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v4 | ||
|
||
- name: "Install Node" | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "20" | ||
|
||
- name: "Install dependencies" | ||
working-directory: ./playground-api | ||
run: "npm ci" | ||
|
||
- name: "Check" | ||
working-directory: ./playground-api | ||
run: "npm run check" | ||
|
||
- name: "Deploy" | ||
working-directory: ./playground-api | ||
env: | ||
AWS_DEFAULT_REGION: "us-east-1" | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
run: "npm run deploy" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
module.exports = { | ||
"extends": [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:@typescript-eslint/stylistic', | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"project": "tsconfig.json", | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"root": true, | ||
"rules": { | ||
"no-prototype-builtins": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
'@typescript-eslint/ban-ts-comment': [ | ||
'error', | ||
{'ts-ignore': 'allow-with-description'}, | ||
], | ||
"indent": ["error", "tab"], | ||
"no-console": "error" | ||
} | ||
}; |
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,3 @@ | ||
/node_modules | ||
/.build | ||
/.serverless |
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,8 @@ | ||
# Notes | ||
|
||
Endpoints: | ||
|
||
* POST - https://gkyhj54sul.execute-api.us-east-1.amazonaws.com/prod/analyse | ||
* GET - https://gkyhj54sul.execute-api.us-east-1.amazonaws.com/prod/result | ||
* GET - https://gkyhj54sul.execute-api.us-east-1.amazonaws.com/prod/sample | ||
* GET - https://gkyhj54sul.execute-api.us-east-1.amazonaws.com/prod/legacyResult |
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,15 @@ | ||
POST https://gkyhj54sul.execute-api.us-east-1.amazonaws.com/prod/analyse | ||
Content-Type: application/json | ||
|
||
{ | ||
"code": "<?php\nmodule_load_include('inc', 'node', 'node.admin');", | ||
"level": "9", | ||
"strictRules": false, | ||
"bleedingEdge": false, | ||
"treatPhpDocTypesAsCertain": true, | ||
"saveResult": true | ||
} | ||
|
||
### | ||
|
||
|
Oops, something went wrong.