Some checks failed
CI Workflow / Check GoReleaser config (pull_request) Has been cancelled
CI Workflow / Prepare GO cache (pull_request) Has been cancelled
CI Workflow / Test readiness for publishing provider (pull_request) Has been cancelled
CI Workflow / CI run tests (pull_request) Has been cancelled
CI Workflow / CI run build and linting (pull_request) Has been cancelled
CI Workflow / Code coverage report (pull_request) Has been cancelled
33 lines
850 B
YAML
33 lines
850 B
YAML
name: TF Acceptance Tests Workflow
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
acc_test:
|
|
name: Acceptance Tests
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Create service account json file
|
|
shell: bash
|
|
run: |
|
|
set -e
|
|
mkdir ~/.stackit
|
|
echo "${{ secrets.TF_ACC_SERVICE_ACCOUNT_JSON }}" >~/.stackit/credentials.json
|
|
cat ~/.stackit/credentials.json
|
|
|
|
- name: Run Test
|
|
uses: ./.github/actions/acc_test
|
|
env:
|
|
TF_ACC_SERVICE_ACCOUNT_FILE: ~/.stackit/credentials.json
|
|
with:
|
|
go-version: ${{ env.GO_VERSION }}
|
|
project_id: ${{ vars.TEST_PROJECT_ID }}
|
|
region: 'eu01'
|
|
service_account_json: ${{ secrets.TF_ACC_SERVICE_ACCOUNT_JSON }}
|