Skip to content

Commit

Permalink
Add render.test to ci and remove not needed qemu-part
Browse files Browse the repository at this point in the history
  • Loading branch information
kaessert committed Nov 5, 2024
1 parent febe05f commit 295855f
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 8 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ jobs:
if: needs.detect-noop.outputs.noop != 'true'

steps:
- name: Setup QEMU
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3
with:
platforms: all

- name: Setup Docker Buildx
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3
with:
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/render_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: render-test
on:
- pull_request
- push
jobs:
test:
name: runner / render-test
runs-on: e2-standard-8
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Run KCL Unit-Tests
id: run-kcl-test
run: |
set -eo pipefail
make submodules
make render.test
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,13 @@ build.init: kcl
endif

render.test: $(CROSSPLANE_CLI) $(KCL) render
@for RENDERED_COMPOSITION in $$(find .cache/render -depth 1 -type f -name "*.yaml"); do \
@echo find .cache/render -depth 1 -type f -name '*.yaml'
@for RENDERED_COMPOSITION in $$(find .cache/render -maxdepth 1 -type f -name '*.yaml'); do \
$(INFO) "Testing $${RENDERED_COMPOSITION}"; \
export RENDERED_COMPOSITION; \
$(KCL) test test/ && \
$(OK) "Success testing \"$${RENDERED_COMPOSITION}\"!" || \
$(ERR) "Failure testing \"$${RENDERED_COMPOSITION}\"!"; \
($(ERR) "Failure testing \"$${RENDERED_COMPOSITION}\"!" && exit 1); \
done; \

.PHONY: check-examples
Expand Down
2 changes: 1 addition & 1 deletion build
Submodule build updated 1 files
+5 −0 makelib/uptest.mk

0 comments on commit 295855f

Please sign in to comment.