workflows for pr ands tags (along with required fixes to go code)

This commit is contained in:
Remy Moll 2024-04-22 12:27:19 +02:00
parent f6b1c25cf4
commit 00ee46876f
4 changed files with 51 additions and 1 deletions

View file

@ -0,0 +1,32 @@
name: Run full test suite
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
code-test:
name: Run tests on code
uses: ./.github/workflows/test-go.yaml
secrets: inherit
build-image:
name: Build Docker image
uses: ./.github/workflows/build-images.yaml
with:
tags: >
commit-${{ github.sha }}
latest
needs: code-test
webhook-tests:
name: Run tests on webhooks
needs: build-image
uses: ./.github/workflows/test-kubernetes.yaml
secrets: inherit

View file

@ -0,0 +1,16 @@
name: Publish a new tagged Docker image
on:
push:
tags: # v* tags are protected in the repository settings
- 'v*'
jobs:
docker-build:
name: Build tagged Docker image
uses: ./.github/workflows/build-images.yaml
with:
tags: >
${{ github.ref }}
commit-${{ github.sha }}
latest

View file

@ -1,6 +1,6 @@
module github.com/neoskop/cert-manager-webhook-dnsimple
go 1.20
go 1.22
require (
github.com/cert-manager/cert-manager v1.12.1

View file

@ -22,6 +22,8 @@ func TestRunsSuite(t *testing.T) {
dns.SetAllowAmbientCredentials(false),
dns.SetManifestPath(testdata_dir),
dns.SetDNSName("puzzle.beer"),
dns.SetUseAuthoritative(false),
dns.SetDNSServer("ns1.dnsimple.com:53"),
)
fixture.RunConformance(t)