From 077f496842f19ca51c86f15545a97e330096e9e4 Mon Sep 17 00:00:00 2001 From: Thiery Ouattara Date: Thu, 4 Jan 2024 16:56:37 +0000 Subject: [PATCH] Update GitHub Action --- .github/workflows/integration_tests.yml | 6 ++++++ .github/workflows/nets_integ_tests.yml | 6 ++++++ .github/workflows/nets_testacc.yml | 6 ++++++ .github/workflows/others_testacc.yml | 7 +++++++ .github/workflows/vms_testacc.yml | 6 ++++++ scripts/generate-certificate.sh | 4 ++-- 6 files changed, 33 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integration_tests.yml b/.github/workflows/integration_tests.yml index 5e306e965..98ee32545 100644 --- a/.github/workflows/integration_tests.yml +++ b/.github/workflows/integration_tests.yml @@ -44,6 +44,12 @@ jobs: terraform_wrapper: false - name: Build go test run: make test + env: + OUTSCALE_ACCESSKEYID: ${{ secrets.OSC_ACCESS_KEY }} + OUTSCALE_SECRETKEYID: ${{ secrets.OSC_SECRET_KEY }} + OUTSCALE_REGION: ${{ secrets.OSC_REGION }} + OUTSCALE_ACCOUNT: ${{ secrets.OSC_ACCOUNT_ID }} + OUTSCALE_IMAGEID: ${{ secrets.OUTSCALE_IMAGEID }} - name: Run integration tests run: make test-integration env: diff --git a/.github/workflows/nets_integ_tests.yml b/.github/workflows/nets_integ_tests.yml index 1f62a1481..9fd2f1684 100644 --- a/.github/workflows/nets_integ_tests.yml +++ b/.github/workflows/nets_integ_tests.yml @@ -44,6 +44,12 @@ jobs: terraform_wrapper: false - name: Build go test run: make test + env: + OUTSCALE_ACCESSKEYID: ${{ secrets.OSC_ACCESS_KEY }} + OUTSCALE_SECRETKEYID: ${{ secrets.OSC_SECRET_KEY }} + OUTSCALE_REGION: ${{ secrets.OSC_REGION }} + OUTSCALE_ACCOUNT: ${{ secrets.OSC_ACCOUNT_ID }} + OUTSCALE_IMAGEID: ${{ secrets.OUTSCALE_IMAGEID }} - name: Run nets integration tests run: make test-integration env: diff --git a/.github/workflows/nets_testacc.yml b/.github/workflows/nets_testacc.yml index b9b237252..c1131e8a7 100644 --- a/.github/workflows/nets_testacc.yml +++ b/.github/workflows/nets_testacc.yml @@ -31,6 +31,12 @@ jobs: go-version: 'stable' - name: Build go test run: make test + env: + OUTSCALE_ACCESSKEYID: ${{ secrets.OSC_ACCESS_KEY }} + OUTSCALE_SECRETKEYID: ${{ secrets.OSC_SECRET_KEY }} + OUTSCALE_REGION: ${{ secrets.OSC_REGION }} + OUTSCALE_ACCOUNT: ${{ secrets.OSC_ACCOUNT_ID }} + OUTSCALE_IMAGEID: ${{ secrets.OUTSCALE_IMAGEID }} - name: Run nets acceptances tests run: make test-net env: diff --git a/.github/workflows/others_testacc.yml b/.github/workflows/others_testacc.yml index e6d591742..c386ef20b 100644 --- a/.github/workflows/others_testacc.yml +++ b/.github/workflows/others_testacc.yml @@ -36,6 +36,12 @@ jobs: go-version: 'stable' - name: Build go test run: make test + env: + OUTSCALE_ACCESSKEYID: ${{ secrets.OSC_ACCESS_KEY }} + OUTSCALE_SECRETKEYID: ${{ secrets.OSC_SECRET_KEY }} + OUTSCALE_REGION: ${{ secrets.OSC_REGION }} + OUTSCALE_ACCOUNT: ${{ secrets.OSC_ACCOUNT_ID }} + OUTSCALE_IMAGEID: ${{ secrets.OUTSCALE_IMAGEID }} - name: Run others acceptances tests run: make test-others env: @@ -44,3 +50,4 @@ jobs: OUTSCALE_REGION: ${{ secrets.OSC_REGION }} OUTSCALE_ACCOUNT: ${{ secrets.OSC_ACCOUNT_ID }} OUTSCALE_IMAGEID: ${{ secrets.OUTSCALE_IMAGEID }} + CA_PATH: ${{ secrets.CA_PATH }} diff --git a/.github/workflows/vms_testacc.yml b/.github/workflows/vms_testacc.yml index f09713344..43594fe8c 100644 --- a/.github/workflows/vms_testacc.yml +++ b/.github/workflows/vms_testacc.yml @@ -31,6 +31,12 @@ jobs: go-version: 'stable' - name: Build go test run: make test + env: + OUTSCALE_ACCESSKEYID: ${{ secrets.OSC_ACCESS_KEY }} + OUTSCALE_SECRETKEYID: ${{ secrets.OSC_SECRET_KEY }} + OUTSCALE_REGION: ${{ secrets.OSC_REGION }} + OUTSCALE_ACCOUNT: ${{ secrets.OSC_ACCOUNT_ID }} + OUTSCALE_IMAGEID: ${{ secrets.OUTSCALE_IMAGEID }} - name: Run vms acceptances tests run: make test-vm env: diff --git a/scripts/generate-certificate.sh b/scripts/generate-certificate.sh index 3eb977ed5..9d34e2ee3 100755 --- a/scripts/generate-certificate.sh +++ b/scripts/generate-certificate.sh @@ -1,6 +1,6 @@ #!/bin/bash -set -e +set -e -x project_dir=$(cd "$(dirname $0)" && pwd) project_root=$(cd $project_dir/.. && pwd) @@ -27,7 +27,7 @@ EOF EOF delete = "" } - working_directory = "${path.module}/." + working_directory = path.module } ' > "outscale/$tf_file"