Skip to content

Update dependency @uiw/react-md-editor to v4.0.5 (#374) #339

Update dependency @uiw/react-md-editor to v4.0.5 (#374)

Update dependency @uiw/react-md-editor to v4.0.5 (#374) #339

name: Environment Main - Apply
on:
push:
branches:
- main
permissions:
id-token: write
contents: read
pull-requests: write
jobs:
envtest:
name: Environment Main - Apply
runs-on: ubuntu-latest
environment: primary-rw
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout code
uses: actions/checkout@cbb722410c2e876e24abbe8de2cc27693e501dcb
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install esbuild
run: npm install -g esbuild
- name: Compile, check and test graphql
run: IN_PIPELINE=true ENVIRONMENT=${{ vars.ENVIRONMENT }} make graphql
- name: Test ui
run: IN_PIPELINE=true ENVIRONMENT=${{ vars.ENVIRONMENT }} make ui-test
- name: Run codacy-coverage-reporter
uses: codacy/codacy-coverage-reporter-action@a38818475bb21847788496e9f0fddaa4e84955ba
with:
project-token: ${{ secrets.CODACY_API_TOKEN }}
coverage-reports: graphql/coverage/lcov.info
- name: Configure AWS Access
uses: aws-actions/configure-aws-credentials@97834a484a5ab3c40fa9e2eb40fcf8041105a573
with:
role-to-assume: arn:aws:iam::${{ vars.AWS_ACCOUNT }}:role/${{ vars.AWS_ROLE }}
role-session-name: GitHubDeploy-${{ vars.ENVIRONMENT }}
aws-region: ${{ vars.AWS_REGION }}
- name: terraform apply
uses: dflook/terraform-apply@7d435d4d115a11e5db1e710ac969f5382f0f6f9f
id: terraform
with:
path: terraform/environment/wildsea
variables: |
environment="${{ vars.ENVIRONMENT }}"
saml_metadata_url="${{ secrets.SAML_METADATA_URL }}"
domain_name="${{ vars.DOMAIN_NAME }}"
google_client_id="${{ secrets.GOOGLE_CLIENT_ID }}"
google_client_secret="${{ secrets.GOOGLE_CLIENT_SECRET }}"
backend_config:
bucket=${{ vars.STATE_BUCKET }}
key=${{ vars.ENVIRONMENT }}/terraform.tfstate
region=${{ vars.AWS_REGION }}
- name: write UI config file
run: |
echo '${{ toJSON(steps.terraform.outputs) }}' | jq 'with_entries(.value = {value: .value})' > ui/config/output-${{ vars.ENVIRONMENT }}.json
- name: Push UI
run: |
IN_PIPELINE=true ENVIRONMENT=${{ vars.ENVIRONMENT }} make ui/.push-${{ vars.ENVIRONMENT }}