Refactor mixin dashboards #3
Workflow file for this run
This file contains hidden or 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: mixin | |
on: | |
pull_request: | |
paths: | |
- "elasticsearch-mixin/**" | |
jobs: | |
check-mixin: | |
name: check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22.5 | |
- 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 | |
- 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 |