Skip to content

Commit

Permalink
Merge pull request #170 from Peefy/ci-add-pkg-e2e-test
Browse files Browse the repository at this point in the history
ci: add more pkg e2e tests
  • Loading branch information
Peefy authored Oct 16, 2024
2 parents b720c0d + 1d676c6 commit abe5057
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/default/resources/Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
run:
crossplane render xr.yaml composition.yaml functions.yaml -r

run-in-docker:
crossplane render xr.yaml composition.yaml functions.yaml -r
6 changes: 6 additions & 0 deletions examples/default/resources/functions-docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: pkg.crossplane.io/v1beta1
kind: Function
metadata:
name: kcl-function
spec:
package: xpkg.upbound.io/crossplane-contrib/function-kcl:latest
6 changes: 6 additions & 0 deletions scripts/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ find examples -type f -name "Makefile" -exec sh -c '
make
' \;

find examples -type f -name "Makefile" -exec sh -c '
dir="{}"
cd "$(dirname "$dir")" || exit
make run-in-docker
' \;

find examples_kcl -type f -name "Makefile" -exec sh -c '
dir="{}"
cd "$(dirname "$dir")" || exit
Expand Down

0 comments on commit abe5057

Please sign in to comment.