Skip to content

fix eamples & re-generate code/docs #4

fix eamples & re-generate code/docs

fix eamples & re-generate code/docs #4

# SPDX-FileCopyrightText: The terraform-provider-k8s Authors
# SPDX-License-Identifier: 0BSD
name: ImageToolkitFluxcdIoImageUpdateAutomationV1Beta2Manifest
on:
pull_request:
branches: [ main ]
paths:
- examples/data-sources/k8s_image_toolkit_fluxcd_io_image_update_automation_v1beta2_manifest/**
- internal/provider/image_toolkit_fluxcd_io_v1beta2/image_toolkit_fluxcd_io_image_update_automation_v1beta2_manifest.go
- internal/provider/image_toolkit_fluxcd_io_v1beta2/image_toolkit_fluxcd_io_image_update_automation_v1beta2_manifest_test.go
- terratest/image_toolkit_fluxcd_io_v1beta2/image_toolkit_fluxcd_io_image_update_automation_v1beta2_manifest_test.go
jobs:
terraform:
name: Test with Terraform
runs-on: ubuntu-latest
steps:
- id: checkout
name: Checkout
uses: actions/checkout@v4
- id: setup_go
name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- id: setup_terraform
name: Setup Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_wrapper: false
- id: install
name: Install Provider
run: make install
- id: tests
name: Run Unit Tests
run: go test -v -timeout=120s -count=1 ./internal/provider/image_toolkit_fluxcd_io_v1beta2/image_toolkit_fluxcd_io_image_update_automation_v1beta2_manifest_test.go
- id: terratest
name: Run Terratest Tests
run: go test -v -timeout=120s -count=1 -run TestImageToolkitFluxcdIoImageUpdateAutomationV1Beta2Manifest ./terratest/image_toolkit_fluxcd_io_v1beta2