Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: cleanup documentation; cleanup makefile; fix minor bugs #301

Merged
merged 1 commit into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
# More info: https://docs.docker.com/engine/reference/builder/#dockerignore-file
# Ignore build and test binaries.
bin/
!bin/app/
testbin/
charts/
cmd/
config/
dev/
hack/
internal/
scripts/
test/
93 changes: 93 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,21 @@ jobs:
- name: Run integration tests
run: make test-integration

kind-e2e-tests:
name: Kind e2e Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Go
id: setup-go
uses: ./.github/actions/setup-go-cache
with:
cache-prefix: kind-e2e-tests

- name: Run kind e2e tests
run: ./scripts/e2e-test.sh

go-mod-up-to-date:
name: Golang Mod Up To Date
runs-on: ubuntu-latest
Expand Down Expand Up @@ -159,3 +174,81 @@ jobs:
fi

exit $changed

helm-chart-up-to-date:
name: Generated Helm Chart Up To Date
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Go
id: setup-go
uses: ./.github/actions/setup-go-cache
with:
disable-cache: "true"

- name: Check generated Helm chart
run: |
make generate-helm-chart

changed=$(git status -s -uno | wc -l)

echo -e "### Git status" >> $GITHUB_STEP_SUMMARY
if [[ "$changed" -gt 0 ]]; then
echo -e "Generated Helm chart is not synchronized. Please run 'make generate-helm-chart' and commit the changes." >> $GITHUB_STEP_SUMMARY

git status -s -uno >> $GITHUB_STEP_SUMMARY

echo -e >> $GITHUB_STEP_SUMMARY
echo -e "### Git diff" >> $GITHUB_STEP_SUMMARY

echo -e '```' >> $GITHUB_STEP_SUMMARY
git --no-pager diff >> $GITHUB_STEP_SUMMARY
echo -e '```' >> $GITHUB_STEP_SUMMARY
else
echo -e "Generated Helm chart is synchronized." >> $GITHUB_STEP_SUMMARY
echo -e >> $GITHUB_STEP_SUMMARY
fi

exit $changed

crd-ref-docs-up-to-date:
name: Generated CRD Reference Docs Up To Date
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Go
id: setup-go
uses: ./.github/actions/setup-go-cache
with:
disable-cache: "true"

- name: Check generated CRD reference docs
run: |
make generate-crd-ref-docs

changed=$(git status -s -uno | wc -l)

echo -e "### Git status" >> $GITHUB_STEP_SUMMARY
if [[ "$changed" -gt 0 ]]; then
echo -e "Generated CRD reference docs are not synchronized. Please run 'make generate-crd-ref-docs' and commit the changes." >> $GITHUB_STEP_SUMMARY

git status -s -uno >> $GITHUB_STEP_SUMMARY

echo -e >> $GITHUB_STEP_SUMMARY
echo -e "### Git diff" >> $GITHUB_STEP_SUMMARY

echo -e '```' >> $GITHUB_STEP_SUMMARY
git --no-pager diff >> $GITHUB_STEP_SUMMARY
echo -e '```' >> $GITHUB_STEP_SUMMARY
else
echo -e "Generated CRD reference docs is synchronized." >> $GITHUB_STEP_SUMMARY
echo -e >> $GITHUB_STEP_SUMMARY
fi

exit $changed
33 changes: 0 additions & 33 deletions Dockerfile.old

This file was deleted.

Loading