Skip to content

Examples tofu tests #297

Examples tofu tests

Examples tofu tests #297

Workflow file for this run

name: Examples tofu tests
on:
pull_request:
branches:
- master
paths:
- 'examples/**.tfvars'
- 'examples/**.tf'
- 'scripts/test-examples.sh'
- 'GNUmakefile'
schedule:
- cron: '30 22 * * *'
workflow_dispatch:
jobs:
Examples_tofu_tests:
environment: test-eu-west-2
runs-on: [self-hosted, linux, eu-west-2]
steps:
- uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
- uses: outscale/frieza-github-actions/frieza-clean@master
with:
access_key: ${{ secrets.OSC_ACCESS_KEY }}
secret_key: ${{ secrets.OSC_SECRET_KEY }}
region: ${{ secrets.OSC_REGION }}
- uses: actions/setup-go@v5
with:
go-version-file: './go.mod'
- name: Setup OpenTofu
uses: opentofu/setup-opentofu@v1
with:
tofu_wrapper: false
- name: Run Examples
run: make tofu-examples
env:
TF_VAR_access_key_id: ${{ secrets.OSC_ACCESS_KEY }}
TF_VAR_secret_key_id: ${{ secrets.OSC_SECRET_KEY }}
TF_VAR_region: ${{ secrets.OSC_REGION }}
TF_VAR_image_id: ${{ secrets.OSC_OMI_EXEMPLE }}