From a6c827c47fb298b31cb4e7c0a1d033033f84ecfa Mon Sep 17 00:00:00 2001 From: Jun-te Kim Date: Mon, 16 Feb 2026 12:30:57 +0000 Subject: [PATCH] terraform apply --- .github/workflows/deploy_terraform.yml | 6 ++-- .github/workflows/unit_tests.yml | 46 +++++++++++++------------- 2 files changed, 25 insertions(+), 27 deletions(-) diff --git a/.github/workflows/deploy_terraform.yml b/.github/workflows/deploy_terraform.yml index 2fd12fe6..e7c8fb94 100644 --- a/.github/workflows/deploy_terraform.yml +++ b/.github/workflows/deploy_terraform.yml @@ -117,8 +117,7 @@ jobs: stage: ${{ needs.determine_stage.outputs.stage }} ecr_repo: address2uprn-${{ needs.determine_stage.outputs.stage }} image_digest: ${{ needs.address2uprn_image.outputs.image_digest }} - # terraform_apply: ${{ needs.determine_stage.outputs.terraform_apply }} - terraform_apply: 'true' + terraform_apply: ${{ needs.determine_stage.outputs.terraform_apply }} secrets: AWS_ACCESS_KEY_ID: ${{ secrets.DEV_AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }} @@ -159,8 +158,7 @@ jobs: stage: ${{ needs.determine_stage.outputs.stage }} ecr_repo: postcode_splitter-${{ needs.determine_stage.outputs.stage }} image_digest: ${{ needs.postcodeSplitter_image.outputs.image_digest }} - # terraform_apply: ${{ needs.determine_stage.outputs.terraform_apply }} - terraform_apply: 'true' + terraform_apply: ${{ needs.determine_stage.outputs.terraform_apply }} secrets: AWS_ACCESS_KEY_ID: ${{ secrets.DEV_AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }} diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 5521a481..cc6431b8 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -1,30 +1,30 @@ -# name: Run unit tests +name: Run unit tests -# on: -# pull_request: -# branches: -# - "**" +on: + pull_request: + branches: + - "**" -# jobs: -# test: -# runs-on: ubuntu-latest +jobs: + test: + runs-on: ubuntu-latest -# steps: -# - name: Checkout code -# uses: actions/checkout@v4 + steps: + - name: Checkout code + uses: actions/checkout@v4 -# - name: Set up Python 3.11 -# uses: actions/setup-python@v4 -# with: -# python-version: '3.11' + - name: Set up Python 3.11 + uses: actions/setup-python@v4 + with: + python-version: '3.11' -# - name: Install tox via Makefile -# run: | -# make setup + - name: Install tox via Makefile + run: | + make setup -# - name: Run tests with tox via Makefile -# env: -# EPC_AUTH_TOKEN: ${{ secrets.DEV_EPC_AUTH_TOKEN }} -# run: | -# make test \ No newline at end of file + - name: Run tests with tox via Makefile + env: + EPC_AUTH_TOKEN: ${{ secrets.DEV_EPC_AUTH_TOKEN }} + run: | + make test \ No newline at end of file