mirror of
https://github.com/cert-manager/webhook-example.git
synced 2025-08-22 20:22:51 +02:00
34 lines
764 B
YAML
34 lines
764 B
YAML
name: Run full test suite
|
|
|
|
on:
|
|
# To prevent this time intesive suite from running redundandtly, it will only run on PRs.
|
|
# If a PR is merged, it also creates a push and thus this workflow unnecessarily runs again.
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- '.github/workflows/**'
|
|
- 'src/**'
|
|
|
|
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
|