From 638893aed009c7092e39d04d0878e512de7783aa Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Thu, 6 Oct 2022 17:52:41 +0300 Subject: [PATCH] Run manifests validation with GitHub Actions Signed-off-by: Stefan Prodan --- .github/workflows/test.yaml | 24 ++++++++++++++++++++++++ Brewfile | 1 + README.md | 4 ++++ 3 files changed, 29 insertions(+) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..000cd70 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,24 @@ +name: test + +on: + pull_request: + push: + branches: + - main + - test* + +permissions: + contents: read + +jobs: + validate: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Set up Homebrew + uses: Homebrew/actions/setup-homebrew@master + - name: Install tools + run: make tools + - name: Run manifests validation + run: make validate diff --git a/Brewfile b/Brewfile index c87f74b..ea84763 100644 --- a/Brewfile +++ b/Brewfile @@ -16,4 +16,5 @@ brew "crane" brew "cosign" # Flux +tap "fluxcd/tap" brew "fluxcd/tap/flux" diff --git a/README.md b/README.md index 6969499..1714df5 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ # flux-local-dev +[![test](https://github.com/stefanprodan/flux-local-dev/workflows/test/badge.svg)](https://github.com/stefanprodan/flux-local-dev/actions) +[![license](https://img.shields.io/github/license/stefanprodan/flux-local-dev.svg)](https://github.com/stefanprodan/flux-local-dev/blob/main/LICENSE) +[![release](https://img.shields.io/github/release/stefanprodan/flux-local-dev/all.svg)](https://github.com/stefanprodan/flux-local-dev/releases) + Spin up a local dev environment for [Flux](https://github.com/fluxcd/flux2) with Docker and Kubernetes KIND in under five minutes.