chore: update config-db to 0.0.1433 (#732) #5544
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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 | |
| - name: Set up Helm | |
| uses: azure/setup-helm@b9e51907a09c216f16ebe8536097933489208112 # v4.3.0 | |
| - name: Set up Python | |
| uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0 | |
| with: | |
| python-version: "3.9" | |
| check-latest: true | |
| - name: Install chart-testing dependencies | |
| run: pip install yamale==4.0.4 yamllint==1.33.0 | |
| - name: Add helm repositories | |
| run: | | |
| helm repo add flanksource https://flanksource.github.io/charts | |
| helm repo add ory https://k8s.ory.sh/helm/charts | |
| helm repo update | |
| - name: Update chart dependencies | |
| uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2 | |
| with: | |
| timeout_minutes: 5 | |
| max_attempts: 5 | |
| retry_wait_seconds: 60 | |
| command: | | |
| cd chart && helm dependency update . | |
| cd ../agent-chart && helm dependency update . | |
| - name: Lint chart | |
| run: make lint | |
| test: | |
| name: test (${{ matrix.suite }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - suite: basic | |
| label_filter: basic | |
| - suite: kratos | |
| label_filter: kratos | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 | |
| - name: Free up disk space | |
| run: | | |
| initial_space=$(df / | grep / | awk '{print $4}') | |
| rm -rf /usr/share/dotnet | |
| rm -rf /opt/ghc | |
| rm -rf /usr/local/share/boost | |
| rm -rf $AGENT_TOOLSDIRECTORY | |
| rm -rf /opt/hostedtoolcache | |
| final_space=$(df / | grep / | awk '{print $4}') | |
| difference=$((final_space - initial_space)) | |
| echo "Disk space difference (in KB): $difference" | |
| - name: Set up Helm | |
| uses: azure/setup-helm@b9e51907a09c216f16ebe8536097933489208112 # v4.3.0 | |
| - name: Add helm repositories | |
| run: | | |
| helm repo add flanksource https://flanksource.github.io/charts | |
| helm repo add ory https://k8s.ory.sh/helm/charts | |
| helm repo update | |
| - name: Build dependencies | |
| uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2 | |
| with: | |
| timeout_minutes: 5 | |
| max_attempts: 5 | |
| retry_wait_seconds: 60 | |
| command: | | |
| cd chart && helm dependency update | |
| - uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0 | |
| with: | |
| python-version: "3.9" | |
| check-latest: true | |
| - name: Create kind cluster | |
| uses: helm/kind-action@92086f6be054225fa813e0a4b13787fc9088faab # v1.13.0 | |
| - name: Set up kubectl | |
| uses: azure/setup-kubectl@901a10e89ea615cf61f57ac05cecdf23e7de06d8 # v3.2 | |
| - name: Set up Go | |
| uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0 | |
| with: | |
| go-version-file: chart/test/go.mod | |
| check-latest: true | |
| - name: Build chart Go tests | |
| working-directory: chart/test | |
| run: | | |
| export KUBECONFIG="${KUBECONFIG:-$HOME/.kube/config}" | |
| go test -c -o chart-tests.test | |
| - name: Run chart Go tests (${{ matrix.suite }}) | |
| working-directory: chart/test | |
| run: | | |
| export KUBECONFIG="${KUBECONFIG:-$HOME/.kube/config}" | |
| ./chart-tests.test -test.v -test.timeout 20m -ginkgo.v -ginkgo.trace -ginkgo.progress -ginkgo.label-filter='${{ matrix.label_filter }}' |