Skip to content

coverage unit test for userservice (#43) #97

coverage unit test for userservice (#43)

coverage unit test for userservice (#43) #97

Workflow file for this run

name: 'Deploy PPN with Terraform'
on:
push:
branches: [ "master" ]
pull_request:
permissions:
contents: read
jobs:
deploy_terraform:
name: Deploy with terraform
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: hashicorp/setup-terraform@v1
- name: Set up AWS credentials
run: |
mkdir -p ~/.aws
touch ~/.aws/credentials
echo "[default]
aws_access_key_id = ${AWS_ACCESS_KEY_ID}
aws_secret_access_key = ${AWS_SECRET_ACCESS_KEY}" > ~/.aws/credentials
env:
AWS_ACCESS_KEY_ID: ${{ secrets.DEPLOY_AWS_TERRAFORM_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.DEPLOY_AWS_TERRAFORM_SECRET_ACCESS_KEY }}
- name: "intialize terraform"
run: terraform init
- name: "validate terraform"
run: terraform validate -no-color
- name: "Run terraform apply"
run: terraform apply -auto-approve -no-color