Skip to content

chore: update appVersion to 0.1.26 (#67) #49

chore: update appVersion to 0.1.26 (#67)

chore: update appVersion to 0.1.26 (#67) #49

Workflow file for this run

name: Test Helm chart
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
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
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Checkout pgdog-enterprise
uses: actions/checkout@v4
with:
repository: pgdogdev/pgdog-enterprise
ref: main-ent
path: pgdog-source
token: ${{ secrets.PGDOG_ENTERPRISE_TOKEN }}
- name: Install Helm
uses: azure/setup-helm@v4
with:
version: 'latest'
- name: Install yq
uses: mikefarah/yq@master
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Cache Rust dependencies
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
pgdog-source/target/
key: ${{ runner.os }}-cargo-${{ hashFiles('pgdog-source/**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Install CMake 3.31
run: |
sudo apt update && sudo apt install mold -y
sudo apt remove cmake
sudo pip3 install cmake==3.31.6
- name: Build pgdog
run: cargo build --bin pgdog --bin gateway
working-directory: pgdog-source
- name: Validate 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
./pgdog-source/target/debug/pgdog --config=/tmp/pgdog.toml configcheck
# Check if gateway is enabled and validate gateway config
rm -f /tmp/gateway.toml
if ./test/generate-gateway-config.sh "$values_file" /tmp/gateway.toml 2>/dev/null; then
echo "==> Validating gateway config for $name..."
./pgdog-source/target/debug/gateway --config=/tmp/gateway.toml configcheck
fi
done
echo "==> All configs valid!"