feature: add contractagreements and contractagreements/{contractAgreementId}/negotiation to irs-edc-client #124
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/**' | |
workflow_dispatch: | |
inputs: | |
node_image: | |
description: 'kindest/node image for k8s kind cluster' | |
default: 'kindest/node:v1.27.3' | |
required: false | |
type: string | |
workflow_call: # Trigger by another workflow | |
inputs: | |
node_image: | |
description: 'kindest/node image for k8s kind cluster' | |
default: 'kindest/node:v1.27.3' | |
required: false | |
type: string | |
jobs: | |
lint-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Kubernetes KinD Cluster | |
uses: container-tools/kind-action@v2 | |
with: | |
node_image: ${{ github.event.inputs.node_image || 'kindest/node:v1.27.3' }} | |
version: v0.20.0 | |
- name: Build image | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
push: true | |
tags: kind-registry:5000/irs-api:testing | |
- name: Set up Helm | |
uses: azure/setup-helm@v3 | |
with: | |
version: v3.9.3 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.9' | |
check-latest: true | |
- name: Set up chart-testing | |
uses: helm/chart-testing-action@v2.6.1 | |
- name: Run chart-testing (list-changed) | |
id: list-changed | |
run: | | |
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }}) | |
if [[ -n "$changed" ]]; then | |
echo "::set-output name=changed::true" | |
fi | |
- name: Run chart-testing (lint) | |
run: | | |
ct lint --validate-maintainers=false --check-version-increment=false --target-branch ${{ github.event.repository.default_branch }} | |
- name: Run chart-testing (install) | |
run: | | |
helm repo add bitnami https://charts.bitnami.com/bitnami | |
helm repo add minio https://charts.min.io/ | |
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts | |
helm repo add grafana https://grafana.github.io/helm-charts | |
ct install --charts charts/irs-helm --helm-extra-set-args "--set=image.tag=testing --set=image.repository=kind-registry:5000/irs-api" | |
if: steps.list-changed.outputs.changed == 'true' |