Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
farski committed Apr 21, 2024
0 parents commit 0b643e1
Show file tree
Hide file tree
Showing 18 changed files with 3,804 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[Dockerfile]
indent_size = 4
11 changes: 11 additions & 0 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
extends: [airbnb-base, plugin:prettier/recommended]
env:
es2023: true
node: true
parserOptions:
ecmaVersion: latest
sourceType: module
rules:
no-console: off
import/prefer-default-export: off
import/extensions: [error, always]
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
11 changes: 11 additions & 0 deletions .github/workflows/check-project-std.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Check project standards

on:
push:
workflow_call:

jobs:
check-cloudformation:
uses: prx/.github/.github/workflows/check-project-std-cloudformation.yml@main
check-javascript:
uses: prx/.github/.github/workflows/check-project-std-javascript.yml@main
51 changes: 51 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Deploy application

on:
push:
branches:
- main
paths:
- template.yml
- package.json
- yarn.lock
- src/**

concurrency:
group: ${{ github.workflow }}

permissions:
id-token: write
contents: read

jobs:
check-project-std:
uses: ./.github/workflows/check-project-std.yml

deploy-application:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: aws-actions/setup-sam@v2
with:
use-installer: true

- uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-2
role-to-assume: arn:aws:iam::578003269847:role/PRX-GHA-AccessRole
role-session-name: gha-deploy-health-events-toolkit

- name: Deploy CloudFormation stack
run: |
rm samconfig.toml
sam build && sam deploy \
--region us-east-2 \
--no-confirm-changeset \
--no-fail-on-empty-changeset \
--stack-name health-events-toolkit \
--resolve-s3 \
--no-progressbar \
--s3-prefix health-events-toolkit \
--capabilities CAPABILITY_IAM \
--role-arn arn:aws:iam::578003269847:role/PRX-GHA-ServiceRoleForCloudFormation
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.aws-sam
node_modules
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodejs 20.9.0 # Should match the AWS Lambda runtime being used
11 changes: 11 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "file"
},
"[yaml]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
}
}
Loading

0 comments on commit 0b643e1

Please sign in to comment.