-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into ana/add-alert-for-gcpce-cpu
- Loading branch information
Showing
20 changed files
with
845 additions
and
109 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
--- | ||
name: Mixin | ||
|
||
permissions: | ||
contents: read | ||
|
||
on: | ||
# To conserve resources we only run tests against main in PRs | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
check-for-changed-mixins: | ||
name: Check for changes | ||
runs-on: ubuntu-latest | ||
outputs: | ||
changed-mixins: ${{ steps.changed-mixins.outputs.all_changed_files }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.18 | ||
|
||
- name: Install CI dependencies | ||
run: make install-ci-deps | ||
|
||
- name: Get changed mixins | ||
id: changed-mixins | ||
uses: tj-actions/changed-files@v44 | ||
with: | ||
dir_names: true | ||
dir_names_exclude_current_dir: true | ||
dir_names_max_depth: 1 | ||
files: | | ||
**-mixin/ | ||
**-observ-lib/ | ||
matrix: true | ||
|
||
- name: List all changed mixins | ||
run: echo '${{ steps.changed-mixins.outputs.all_changed_files }}' | ||
|
||
lint-mixin: | ||
name: Run Mixtool | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
contents: write | ||
pull-requests: write | ||
repository-projects: write | ||
timeout-minutes: 15 | ||
needs: [check-for-changed-mixins] | ||
strategy: | ||
matrix: | ||
mixin: ${{ fromJSON(needs.check-for-changed-mixins.outputs.changed-mixins) }} | ||
fail-fast: false | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.18 | ||
|
||
- name: Install CI dependencies | ||
run: make install-ci-deps | ||
|
||
- name: Install Mixin dependencies | ||
working-directory: ./${{ matrix.mixin }} | ||
run: jb install | ||
|
||
- name: Lint Mixin | ||
working-directory: ./${{ matrix.mixin }} | ||
run: mixtool lint mixin.libsonnet |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"version": 1, | ||
"dependencies": [], | ||
"legacyImports": false | ||
} | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
import 'github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/main.libsonnet' | ||
import 'github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/main.libsonnet' |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.