mirror of
https://github.com/prometheus-community/elasticsearch_exporter.git
synced 2026-02-06 10:58:13 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 5.0.0 to 6.0.1. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v5...8e8c483db84b4bee98b60c0593521ed34d9990e8) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 6.0.1 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
35 lines
1.3 KiB
YAML
35 lines
1.3 KiB
YAML
---
|
|
name: mixin
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- "elasticsearch-mixin/**"
|
|
|
|
jobs:
|
|
check-mixin:
|
|
name: check
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
- name: Setup Go
|
|
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
|
|
with:
|
|
go-version: 1.25.x
|
|
- name: Install dependencies
|
|
run: |
|
|
go install github.com/google/go-jsonnet/cmd/jsonnet@v0.20.0
|
|
go install github.com/google/go-jsonnet/cmd/jsonnetfmt@v0.20.0
|
|
go install github.com/google/go-jsonnet/cmd/jsonnet-lint@v0.20.0
|
|
go install github.com/monitoring-mixins/mixtool/cmd/mixtool@16dc166166d91e93475b86b9355a4faed2400c18
|
|
go install github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb@v0.5.1
|
|
- name: Lint
|
|
run: bash ./scripts/lint-jsonnet.sh
|
|
- name: Compile mixin
|
|
run: bash ./scripts/compile-mixin.sh
|
|
- name: Verify compiled mixin matches repo
|
|
run: |
|
|
git diff --exit-code -- ./elasticsearch-mixin || (echo "Compiled mixin does not match repo" && exit 1)
|
|
# Check if there are any new untracked files
|
|
test -z "$(git status --porcelain)" || (echo "Untracked files found, please run ./scripts/compile-mixin.sh" && exit 1)
|