Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Jetibo committed Nov 17, 2023
0 parents commit c81cf21
Show file tree
Hide file tree
Showing 1,252 changed files with 148,483 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
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"
27 changes: 27 additions & 0 deletions .github/examples/merge_deploy.yaml
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 }}
9 changes: 9 additions & 0 deletions .github/pull_request_template.md
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
85 changes: 85 additions & 0 deletions .github/workflows/checks.yaml
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'
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'
Loading

0 comments on commit c81cf21

Please sign in to comment.