|
7 | 7 |
|
8 | 8 | jobs: |
9 | 9 | 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