Skip to content

Commit

Permalink
Merge pull request #199 from Enterprise-CMCS/master
Browse files Browse the repository at this point in the history
Release to val
  • Loading branch information
mdial89f authored Nov 17, 2023
2 parents 24c3e78 + b7d3c8f commit b0ba6f9
Show file tree
Hide file tree
Showing 177 changed files with 11,947 additions and 5,661 deletions.
72 changes: 43 additions & 29 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,24 @@ jobs:
if [[ ! $STAGE_NAME =~ ^[a-z][a-z0-9-]*$ ]]; then
echo "ERROR: Your branch name, $STAGE_NAME, is not a valid Serverless Framework stage name." && exit 1
fi
cache:
runs-on: ubuntu-20.04
needs:
- init
environment:
name: ${{ github.ref_name }}
steps:
- name: Checkout
uses: actions/checkout@v3

- uses: ./.github/actions/setup

- run: run install

deploy:
runs-on: ubuntu-20.04
needs:
- init
- cache
environment:
name: ${{ github.ref_name }}
url: ${{ steps.deployment-data.outputs.APPURL }}
Expand Down Expand Up @@ -89,7 +102,7 @@ jobs:
test:
runs-on: ubuntu-20.04
needs:
- deploy
- cache
environment:
name: ${{ github.ref_name }}
steps:
Expand All @@ -108,33 +121,33 @@ jobs:
- name: Test
run: yarn test-ci

# e2e:
# timeout-minutes: 5
# runs-on: ubuntu-20.04
# needs:
# - deploy
# env:
# baseurl: ${{ needs.deploy.outputs.app-url }}
# if: ${{ github.ref != 'refs/heads/production' }}
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# - name: Setup
# uses: ./.github/actions/setup
# - name: Configure AWS credentials
# uses: aws-actions/configure-aws-credentials@v2
# with:
# role-to-assume: ${{ secrets.AWS_OIDC_ROLE_TO_ASSUME }}
# aws-region: us-east-1
# role-duration-seconds: 10800
# - name: Run e2e tests
# run: run e2e
# - uses: actions/upload-artifact@v3
# if: always()
# with:
# name: playwright-report
# path: src/services/ui/playwright-report/
# retention-days: 30
e2e:
timeout-minutes: 5
runs-on: ubuntu-20.04
needs:
- deploy
env:
baseurl: ${{ needs.deploy.outputs.app-url }}
if: ${{ github.ref != 'refs/heads/production' }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup
uses: ./.github/actions/setup
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: ${{ secrets.AWS_OIDC_ROLE_TO_ASSUME }}
aws-region: us-east-1
role-duration-seconds: 10800
- name: Run e2e tests
run: run e2e
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: src/services/ui/playwright-report/
retention-days: 30

cfn-nag:
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -210,6 +223,7 @@ jobs:
needs:
- test
- cfn-nag
- e2e
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/destroy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
if: |
(
github.event.ref_type == 'branch' &&
!startsWith(github.event.ref, 'skipci') &&
!contains(fromJson('["master", "staging", "production"]'), github.event.ref)
(!startsWith(github.event.ref, 'skipci')) &&
(!contains(fromJson('["master", "staging", "production"]'), github.event.ref))
) ||
(
inputs.environment != '' &&
!contains(fromJson('["master", "staging", "production"]'), inputs.environment)
(!contains(fromJson('["master", "staging", "production"]'), inputs.environment))
)
runs-on: ubuntu-20.04
environment:
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
SLACK_COLOR: ${{job.status}}
SLACK_ICON: https://github.com/Enterprise-CMCS.png?size=48
SLACK_TITLE: Failure
SLACK_USERNAME: ${{ github.repository }} ${{job.status}}
SLACK_USERNAME: ${{ github.repository }} - ${{job.status}}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

delete_environment:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/running-stage-notifier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: ./.github/actions/setup

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: ${{ secrets.AWS_OIDC_ROLE_TO_ASSUME }}
aws-region: us-east-1
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/security-group-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3

- uses: ./.github/actions/setup # We need this largely for the PROJECT variable setting

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: ${{ secrets.AWS_OIDC_ROLE_TO_ASSUME }}
aws-region: us-east-1
Expand Down
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"editor.formatOnSave": true
"editor.formatOnSave": true,
"tailwindCSS.experimental.classRegex": [
["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"]
]
}
1 change: 1 addition & 0 deletions docs/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ source "https://rubygems.org"

gem "jekyll"
gem "jekyll-remote-theme"
gem "jekyll-include-cache"
gem "jekyll-seo-tag"
gem "rake"
gem "webrick"
2 changes: 1 addition & 1 deletion docs/_deploy-metrics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"date-fns": "^2.29.3",
"framer-motion": "^6",
"jszip": "^3.10.1",
"next": "12.3.1",
"next": "^13.5.4",
"octokit": "^2.0.9",
"react": "18.2.0",
"react-aws-icons": "^1.2.1",
Expand Down
3 changes: 2 additions & 1 deletion docs/_deploy-metrics/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ import type { AppProps } from "next/app";
import { ChakraProvider } from "@chakra-ui/react";

function MyApp({ Component, pageProps }: AppProps) {
const AnyComponent = Component as any;
return (
<ChakraProvider>
<Component {...pageProps} />
<AnyComponent {...pageProps} />
</ChakraProvider>
);
}
Expand Down
Loading

0 comments on commit b0ba6f9

Please sign in to comment.