forked from open-telemetry/opentelemetry-helm-charts
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (46 loc) · 1.46 KB
/
Copy pathlint.yaml
File metadata and controls
52 lines (46 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Lint Charts
on:
pull_request:
branches:
- main
permissions:
contents: read
jobs:
lint-test-matrix:
runs-on: ubuntu-latest
strategy:
matrix:
helm-version:
- "v4.0.5"
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- name: Setup
uses: ./.github/actions/setup
with:
create-kind-cluster: "false"
helm-version: ${{ matrix.helm-version }}
- name: Run chart-testing (lint)
run: "ct lint --target-branch main
--chart-repos opentelemetry-collector=https://open-telemetry.github.io/opentelemetry-helm-charts
--chart-repos prometheus=https://prometheus-community.github.io/helm-charts
--chart-repos grafana=https://grafana-community.github.io/helm-charts
--chart-repos jaeger=https://jaegertracing.github.io/helm-charts
--chart-repos opensearch=https://opensearch-project.github.io/helm-charts"
- name: Run make check-examples
run: make check-examples
lint-test:
if: always()
runs-on: ubuntu-latest
needs: [lint-test-matrix]
steps:
- name: Check matrix result
run: |
if [[ "${{ needs.lint-test-matrix.result }}" == "success" ]]; then
echo "All matrix jobs passed!"
else
echo "One or more matrix jobs failed."
exit 1
fi