diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 55d310e9..8cc8c1c5 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -132,14 +132,17 @@ jobs: - name: Create service account json file if: ${{ github.event_name == 'pull_request' }} run: | - echo "${{ secrets.TF_ACC_SERVICE_ACCOUNT_JSON }}" >~/service_account.json + echo "${{ secrets.TF_ACC_SERVICE_ACCOUNT_JSON }}" >~/.service_account.json - name: Run go mod tidy if: ${{ github.event_name == 'pull_request' }} run: go mod tidy - name: Testing - run: make test + run: | + TF_ACC_SERVICE_ACCOUNT_FILE=~/.service_account.json + export TF_ACC_SERVICE_ACCOUNT_FILE + make test - name: Acceptance Testing env: