generated from twilio-professional-services/flex-project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 2b117a7
Showing
1,285 changed files
with
140,607 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,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
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,27 @@ | ||
name: Deploy Flex on Merge | ||
|
||
# This is an example workflow for automatically triggered deployments | ||
# Copy this file to the workflows directory to use it | ||
|
||
on: | ||
push: | ||
branches: | ||
# Change the branches below to match your desired configuration | ||
# These should be protected branches | ||
- develop | ||
- main | ||
|
||
jobs: | ||
deploy: | ||
uses: ./.github/workflows/flex_deploy.yaml | ||
with: | ||
# Change inputs below to match your desired configuration | ||
# Uses the 'production' env when pushing to the main branch, or 'dev' env when pushing to the develop branch | ||
environment: ${{ github.ref_name == 'main' && 'production' || 'dev' }} | ||
deploy_terraform: true | ||
overwrite_config: false | ||
secrets: | ||
TWILIO_ACCOUNT_SID: ${{ secrets.TWILIO_ACCOUNT_SID }} | ||
TWILIO_API_KEY: ${{ secrets.TWILIO_API_KEY }} | ||
TWILIO_API_SECRET: ${{ secrets.TWILIO_API_SECRET }} | ||
TF_ENCRYPTION_KEY: ${{ secrets.TF_ENCRYPTION_KEY }} |
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,9 @@ | ||
### Summary | ||
|
||
_Provide a summary of the change_ | ||
|
||
### Checklist | ||
|
||
- [ ] Tested changes end to end | ||
- [ ] Updated documentation | ||
- [ ] Requested one or more reviewers |
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,85 @@ | ||
name: Checks | ||
|
||
# Within this file, FEATURE and END FEATURE blocks are used only by the remove-features script. | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
branches: | ||
- main | ||
paths: | ||
- 'plugin-flex-ts-template-v2/**' | ||
- 'serverless-functions/**' | ||
- 'addons/**' | ||
# Enable running this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
checks: write | ||
contents: write | ||
pull-requests: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: setup node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '18' | ||
- name: Install packages | ||
run: | | ||
npm install --ignore-scripts | ||
npm run postinstall -- --skip-env | ||
- name: Run eslint | ||
run: npm run lint:report | ||
continue-on-error: true | ||
- name: Annotate Code Linting Results | ||
id: annotate | ||
uses: ataylorme/eslint-annotate-action@v2 | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" | ||
report-json: "eslint_report.json" | ||
- name: Comment on error | ||
uses: mshick/add-pr-comment@v2 | ||
if: always() && steps.annotate.outputs.errorCount > 0 | ||
with: | ||
message: | | ||
${{steps.annotate.outputs.summary}} | ||
:rotating_light: Errors must be resolved before merging, and have been annotated in the "Files changed" tab. Run `npm run lint` if you would like to see results locally. | ||
- name: Comment on warning | ||
uses: mshick/add-pr-comment@v2 | ||
if: always() && steps.annotate.outputs.errorCount < 1 && steps.annotate.outputs.warningCount > 0 | ||
with: | ||
message: | | ||
${{steps.annotate.outputs.summary}} | ||
:warning: Merging is still possible with these warnings, but please fix them if possible! Annotations are available in the "Files changed" tab. Run `npm run lint` if you would like to see results locally. | ||
- name: Comment on no issues | ||
uses: mshick/add-pr-comment@v2 | ||
if: always() && steps.annotate.outputs.errorCount < 1 && steps.annotate.outputs.warningCount < 1 | ||
with: | ||
message: | | ||
${{steps.annotate.outputs.summary}} | ||
:white_check_mark: No issues found! | ||
test-plugin-v2: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: setup node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '18' | ||
- name: Install packages | ||
working-directory: ./plugin-flex-ts-template-v2 | ||
run: npm install | ||
- name: Run tests | ||
working-directory: ./plugin-flex-ts-template-v2 | ||
run: npm run test:ci | ||
- name: Publish test results | ||
uses: mikepenz/action-junit-report@v4 | ||
if: always() | ||
with: | ||
report_paths: './plugin-flex-ts-template-v2/test-results/junit.xml' |
6 changes: 6 additions & 0 deletions
6
.github/workflows/custom-actions/hide-secret-action/action.yml
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,6 @@ | ||
name: 'Hide Secret Action' | ||
description: 'This Action hide secrets in logs using ::add-mask:: This works just with the workflow_dispatch event' | ||
|
||
runs: | ||
using: 'node16' | ||
main: './built/index.js' |
Oops, something went wrong.