40
.github/workflows/tests-base.yaml
vendored
Normal file
40
.github/workflows/tests-base.yaml
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
---
|
||||
name: Run Tests
|
||||
|
||||
on:
|
||||
push:
|
||||
branches-ignore:
|
||||
- dev
|
||||
- main
|
||||
|
||||
paths-ignore:
|
||||
- "README.md"
|
||||
- ".vscode/**"
|
||||
|
||||
workflow_call:
|
||||
|
||||
jobs:
|
||||
run-tests:
|
||||
name: Run Tests
|
||||
timeout-minutes: 10
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Kubectl tool installer
|
||||
uses: azure/setup-kubectl@v3
|
||||
|
||||
- name: Setup Kustomize
|
||||
uses: imranismail/setup-kustomize@v2
|
||||
|
||||
- name: Build k8s manifests
|
||||
working-directory: kubernetes
|
||||
run: |
|
||||
envs=( "development" "production" )
|
||||
|
||||
for i in "${envs[@]}"
|
||||
do
|
||||
kustomize build "$i"
|
||||
done
|
||||
Reference in New Issue
Block a user