Skip to content

Commit 6573a10

Browse files
committed
Lint in CI
Signed-off-by: Danny Kopping <[email protected]>
1 parent 53b9fd4 commit 6573a10

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/lint.yaml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Lint
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
10+
jobs:
11+
lint:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Go
18+
uses: actions/setup-go@v2
19+
with:
20+
go-version: 1.22
21+
22+
- name: Install Helm
23+
uses: azure/setup-helm@v4
24+
with:
25+
version: v3.14.4
26+
27+
- name: Install yq
28+
run: |
29+
sudo wget https://github.com/mikefarah/yq/releases/download/v4.42.1/yq_linux_amd64 -O /usr/bin/yq &&\
30+
sudo chmod +x /usr/bin/yq
31+
32+
- name: Set up helm repos
33+
working-directory: coder-observability
34+
run: |
35+
helm dependency update
36+
37+
- name: Lint Helm chart and rules
38+
run: make lint

0 commit comments

Comments
 (0)