-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (39 loc) · 1.37 KB
/
terratest-kyverno_io_policy_v2beta1_manifest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# SPDX-FileCopyrightText: The terraform-provider-k8s Authors
# SPDX-License-Identifier: 0BSD
name: KyvernoIoPolicyV2Beta1Manifest
on:
pull_request:
branches: [ main ]
paths:
- examples/data-sources/k8s_kyverno_io_policy_v2beta1_manifest/**
- internal/provider/kyverno_io_v2beta1/kyverno_io_policy_v2beta1_manifest.go
- internal/provider/kyverno_io_v2beta1/kyverno_io_policy_v2beta1_manifest_test.go
- terratest/kyverno_io_v2beta1/kyverno_io_policy_v2beta1_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/kyverno_io_v2beta1/kyverno_io_policy_v2beta1_manifest_test.go
- id: terratest
name: Run Terratest Tests
run: go test -v -timeout=120s -count=1 -run TestKyvernoIoPolicyV2Beta1Manifest ./terratest/kyverno_io_v2beta1