Skip to content

Merge pull request #28 from jupyterhub/dependabot/github_actions/acti… #43

Merge pull request #28 from jupyterhub/dependabot/github_actions/acti…

Merge pull request #28 from jupyterhub/dependabot/github_actions/acti… #43

Workflow file for this run

# This is a GitHub workflow defining a set of jobs with a set of steps.
# ref: https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
#
# This workflow test the Helm chart in the following ways:
#
# 1. runs `helm lint`
# 2. runs `helm install` with the `--wait` flag to ensure that pods startup and
# enters a ready state.
# 3. runs `helm test` that runs primitive tests defined as part of the Helm chart
# under pebble/templates/tests to verify things seem to work.
#
name: Test
on:
pull_request:
paths-ignore:
- "**.md"
- ".github/workflows/*"
- "!.github/workflows/test.yaml"
push:
paths-ignore:
- "**.md"
- ".github/workflows/*"
- "!.github/workflows/test.yaml"
branches-ignore:
- "dependabot/**"
- "pre-commit-ci-update-config"
workflow_dispatch:
jobs:
test_pebble:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
# chartpress requires the full history
fetch-depth: 0
# ref: https://github.com/jupyterhub/action-k3s-helm
- uses: jupyterhub/action-k3s-helm@v3
with:
k3s-version: ""
helm-version: ""
metrics-enabled: false
traefik-enabled: false
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Run tests
run: |
helm lint pebble --values ci/ci-values.yaml
helm lint pebble --strict --values ci/ci-values.yaml
helm template pebble ./pebble --values ci/ci-values.yaml --validate
helm install pebble ./pebble --values ci/ci-values.yaml --wait --timeout 60s
helm test pebble
# ref: https://github.com/jupyterhub/action-k8s-namespace-report
- name: Kubernetes namespace report
uses: jupyterhub/action-k8s-namespace-report@v1
if: always()
with:
# The pebble-test and pebble-coredns-test pods are created by `helm
# test`, and the other workloads are part of the helm chart itself.
#
important-workloads: pebble-test pebble-coredns-test deploy/pebble deploy/pebble-coredns