Skip to content

Commit 41797ef

Browse files
authored
Merge pull request prometheus-community#973 from sysadmind/yamllint
Fix yamllint errors for new Github Actions CI
2 parents 3774123 + 7408f21 commit 41797ef

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

.github/workflows/mixin.yml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,28 @@ on:
77

88
jobs:
99
check-mixin:
10-
name: check
11-
runs-on: ubuntu-latest
12-
steps:
13-
- name: Checkout repository
14-
uses: actions/checkout@v4
15-
- name: Setup Go
16-
uses: actions/setup-go@v5
17-
with:
18-
go-version: 1.22.5
19-
- name: Install dependencies
20-
run: |
21-
go install github.com/google/go-jsonnet/cmd/jsonnet@v0.20.0
22-
go install github.com/google/go-jsonnet/cmd/jsonnetfmt@v0.20.0
23-
go install github.com/google/go-jsonnet/cmd/jsonnet-lint@v0.20.0
24-
go install github.com/monitoring-mixins/mixtool/cmd/mixtool@16dc166166d91e93475b86b9355a4faed2400c18
25-
go install github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb@v0.5.1
26-
- name: Lint
27-
run: bash ./scripts/lint-jsonnet.sh
28-
- name: Compile mixin
29-
run: bash ./scripts/compile-mixin.sh
30-
- name: Verify compiled mixin matches repo
31-
run: |
32-
git diff --exit-code -- ./elasticsearch-mixin || (echo "Compiled mixin does not match repo" && exit 1)
33-
# Check if there are any new untracked files
34-
test -z "$(git status --porcelain)" || (echo "Untracked files found, please run ./scripts/compile-mixin.sh" && exit 1)
10+
name: check
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
- name: Setup Go
16+
uses: actions/setup-go@v5
17+
with:
18+
go-version: 1.22.5
19+
- name: Install dependencies
20+
run: |
21+
go install github.com/google/go-jsonnet/cmd/jsonnet@v0.20.0
22+
go install github.com/google/go-jsonnet/cmd/jsonnetfmt@v0.20.0
23+
go install github.com/google/go-jsonnet/cmd/jsonnet-lint@v0.20.0
24+
go install github.com/monitoring-mixins/mixtool/cmd/mixtool@16dc166166d91e93475b86b9355a4faed2400c18
25+
go install github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb@v0.5.1
26+
- name: Lint
27+
run: bash ./scripts/lint-jsonnet.sh
28+
- name: Compile mixin
29+
run: bash ./scripts/compile-mixin.sh
30+
- name: Verify compiled mixin matches repo
31+
run: |
32+
git diff --exit-code -- ./elasticsearch-mixin || (echo "Compiled mixin does not match repo" && exit 1)
33+
# Check if there are any new untracked files
34+
test -z "$(git status --porcelain)" || (echo "Untracked files found, please run ./scripts/compile-mixin.sh" && exit 1)

0 commit comments

Comments
 (0)