feat: start serving v2 API #174
Workflow file for this run
This file contains 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: Lint and Test Charts | |
on: | |
pull_request: | |
paths: | |
- "charts/**" | |
- '!**.md' | |
jobs: | |
lint-test: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.7 | |
- name: Set up chart-testing | |
uses: helm/chart-testing-action@v2.2.1 | |
- name: Run chart-testing (list-changed) | |
id: list-changed | |
run: | | |
changed=$(ct list-changed --config ct.yaml) | |
if [[ -n "$changed" ]]; then | |
echo "changed=true" >> $GITHUB_OUTPUT | |
fi | |
- name: Run chart-testing (lint) | |
run: ct lint --config ct.yaml | |
- name: Create kind cluster | |
uses: helm/kind-action@v1.10.0 | |
if: steps.list-changed.outputs.changed == 'true' | |
with: | |
node_image: kindest/node:v1.30.0 | |
- name: Apply cert-manager | |
run: | | |
kubectl apply -f https://github.com/jetstack/cert-manager/releases/latest/download/cert-manager.yaml | |
kubectl -n cert-manager wait --for=condition=available --timeout=180s --all deployments | |
- name: Prepare values.yaml | |
run: | | |
LATEST=$(curl -s "https://api.github.com/repos/cybozu-go/accurate/releases/latest" | jq -r .tag_name) | |
APP_VERSION=${LATEST#v} | |
mkdir -p charts/accurate/ci/ | |
cat > charts/accurate/ci/ci-values.yaml <<EOF | |
image: | |
tag: $APP_VERSION | |
EOF | |
- name: Run chart-testing (install) | |
run: ct install --config ct.yaml |