feat: pvc for wal (#122) #175
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test Helm chart | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: blacksmith-4vcpu-ubuntu-2404 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install Helm | |
| uses: azure/setup-helm@v4 | |
| with: | |
| version: 'latest' | |
| - name: Install yq | |
| uses: mikefarah/yq@master | |
| - name: Install kubeconform | |
| run: | | |
| curl -sL https://github.com/yannh/kubeconform/releases/latest/download/kubeconform-linux-amd64.tar.gz | tar xz | |
| sudo mv kubeconform /usr/local/bin/ | |
| - name: Run tests | |
| run: ./test/test.sh | |
| validate-configs: | |
| runs-on: blacksmith-4vcpu-ubuntu-2404 | |
| timeout-minutes: 30 | |
| permissions: | |
| contents: read | |
| env: | |
| PGDOG_IMAGE: ghcr.io/pgdogdev/pgdog-enterprise:main-ent | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install Helm | |
| uses: azure/setup-helm@v4 | |
| with: | |
| version: latest | |
| - name: Install yq | |
| uses: mikefarah/yq@master | |
| - name: Pull pgdog image | |
| run: docker pull "$PGDOG_IMAGE" | |
| - name: Validate generated pgdog configs | |
| run: | | |
| set -eo pipefail | |
| for values_file in test/values-*.yaml; do | |
| name=$(basename "$values_file" .yaml | sed 's/values-//') | |
| echo "==> Validating config for $name..." | |
| rm -f /tmp/pgdog.toml | |
| ./test/generate-config.sh "$values_file" /tmp/pgdog.toml | |
| docker run --rm \ | |
| -v /tmp/pgdog.toml:/tmp/pgdog.toml:ro \ | |
| "$PGDOG_IMAGE" \ | |
| /usr/local/bin/pgdog --config=/tmp/pgdog.toml configcheck | |
| done | |
| echo "==> All configs valid!" |