rebased: Add Gitea Actions act runner #666

Merged
vjm merged 27 commits from gitea-actions into main 2024-11-10 13:35:57 +00:00
8 changed files with 160 additions and 0 deletions
Showing only changes of commit 19b6916f35 - Show all commits

View File

@ -0,0 +1,20 @@
suite: actions template | config-act-runner
release:
name: gitea-unittests
namespace: testing
templates:
- templates/gitea/actions/config-act-runner.yaml
tests:
- it: renders a deployment
template: templates/gitea/actions/config-act-runner.yaml
set:
actions:
statefulset:
enabled: true
asserts:
- hasDocuments:
count: 1
- containsDocument:
kind: ConfigMap
apiVersion: v1
name: gitea-unittests-act-runner-config

View File

@ -0,0 +1,20 @@
suite: actions template | config-scripts
release:
name: gitea-unittests
namespace: testing
templates:
- templates/gitea/actions/config-scripts.yaml
tests:
- it: renders a deployment
template: templates/gitea/actions/config-scripts.yaml
set:
actions:
job:
enabled: true
asserts:
- hasDocuments:
count: 1
- containsDocument:
kind: ConfigMap
apiVersion: v1
name: gitea-unittests-scripts

View File

@ -0,0 +1,20 @@
suite: actions template | job
release:
name: gitea-unittests
namespace: testing
templates:
- templates/gitea/actions/job.yaml
tests:
- it: renders a deployment
template: templates/gitea/actions/job.yaml
set:
actions:
job:
enabled: true
asserts:
- hasDocuments:
count: 1
- containsDocument:
kind: Job
apiVersion: batch/v1
name: gitea-unittests-actions-token-job

View File

@ -0,0 +1,20 @@
suite: actions template | role-job
release:
name: gitea-unittests
namespace: testing
templates:
- templates/gitea/actions/role-job.yaml
tests:
- it: renders a role
template: templates/gitea/actions/role-job.yaml
set:
actions:
job:
enabled: true
asserts:
- hasDocuments:
count: 1
- containsDocument:
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
name: gitea-unittests-actions-token-job

View File

@ -0,0 +1,20 @@
suite: actions template | rolebinding-job
release:
name: gitea-unittests
namespace: testing
templates:
- templates/gitea/actions/rolebinding-job.yaml
tests:
- it: renders a deployment
template: templates/gitea/actions/rolebinding-job.yaml
set:
actions:
job:
enabled: true
asserts:
- hasDocuments:
count: 1
- containsDocument:
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
name: gitea-unittests-actions-token-job

View File

@ -0,0 +1,20 @@
suite: actions template | secret-token
release:
name: gitea-unittests
namespace: testing
templates:
- templates/gitea/actions/secret-token.yaml
tests:
- it: renders a deployment
template: templates/gitea/actions/secret-token.yaml
set:
actions:
job:
enabled: true
asserts:
- hasDocuments:
count: 1
- containsDocument:
kind: Secret
apiVersion: v1
name: gitea-unittests-actions-token

View File

@ -0,0 +1,20 @@
suite: actions template | serviceaccount-job
release:
name: gitea-unittests
namespace: testing
templates:
- templates/gitea/actions/serviceaccount-job.yaml
tests:
- it: renders a deployment
template: templates/gitea/actions/serviceaccount-job.yaml
set:
actions:
job:
enabled: true
asserts:
- hasDocuments:
count: 1
- containsDocument:
kind: ServiceAccount
apiVersion: v1
name: gitea-unittests-actions-token-job

View File

@ -0,0 +1,20 @@
suite: actions template | statefulset
release:
name: gitea-unittests
namespace: testing
templates:
- templates/gitea/actions/statefulset.yaml
tests:
- it: renders a deployment
template: templates/gitea/actions/statefulset.yaml
set:
actions:
statefulset:
enabled: true
asserts:
- hasDocuments:
count: 1
- containsDocument:
kind: StatefulSet
apiVersion: apps/v1
name: gitea-unittests-act-runner