Skip to content

Remediate GHSA-grv7-fg5c-xmjg by pinning transitive braces to 3.0.3 in plugin-hrm-form #7695

Remediate GHSA-grv7-fg5c-xmjg by pinning transitive braces to 3.0.3 in plugin-hrm-form

Remediate GHSA-grv7-fg5c-xmjg by pinning transitive braces to 3.0.3 in plugin-hrm-form #7695

Workflow file for this run

# Copyright (C) 2021-2023 Technology Matters
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see https://www.gnu.org/licenses/.
name: End to End Testing CI
# Action
on: [pull_request, workflow_dispatch]
concurrency: e2e
jobs:
e2e_test:
name: E2E tests
runs-on: ubuntu-latest
steps:
- name: Checkout Branch
uses: actions/checkout@v7
- name: Use Node.js
uses: actions/setup-node@v7
with:
node-version: '22.x'
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v6
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: Set Twilio account SID
uses: ./.github/actions/inject-ssm-secrets
with:
ssm_parameter: "/development/twilio/E2E/account_sid"
env_variable_name: "TWILIO_ACCOUNT_SID"
- name: Set Twilio Auth Token
uses: ./.github/actions/inject-ssm-secrets
with:
ssm_parameter: "/development/twilio/${{env.TWILIO_ACCOUNT_SID}}/auth_token"
env_variable_name: "TWILIO_AUTH_TOKEN"
- name: Set E2E connection details in appConfig.js
run: npm ci && npm run setAppConfigCreds -- -a ${{env.TWILIO_ACCOUNT_SID}}
working-directory: ./scripts
shell: bash
- name: Create secret.js
run: |
touch ./src/private/secret.js
working-directory: ./plugin-hrm-form
shell: bash
- name: Fill secret.js
run: |
cat <<EOT >> ./src/private/secret.js
export const datadogAccessToken = 'x';
export const datadogApplicationID = 'x';
export const fullStoryId = 'x';
EOT
working-directory: ./plugin-hrm-form
shell: bash
- name: Install Flex Plugin
uses: ./.github/actions/install-flex-plugin
- name: Run Form Definitions Server
run: NODE_ENV=development npm run dev:local-form-definition-server &
working-directory: ./plugin-hrm-form
- name: Run Flex Dev Server
run: NODE_ENV=development REACT_APP_FORM_DEFINITIONS_BASE_URL=http://localhost:8090 TWILIO_ACCOUNT_SID=${{env.TWILIO_ACCOUNT_SID}} TWILIO_AUTH_TOKEN=${{env.TWILIO_AUTH_TOKEN}} npm run start &
working-directory: ./plugin-hrm-form
- name: Run e2e tests
uses: ./.github/actions/run-e2e-tests
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
environment: local
- name: Publish Test Reports
uses: dorny/test-reporter@v3
if: success() || failure() # always run even if the previous step fails
with:
name: E2E Tests Report
path: '!(node_modules)/**/junit.xml'
reporter: java-junit