mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-10-18 02:29:04 +02:00
contrib: expand Windows mixin rules and publish runbooks (#2575)
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
@@ -17,6 +17,10 @@ on:
|
||||
|
||||
permissions: {}
|
||||
|
||||
concurrency:
|
||||
group: mixin-${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
rules:
|
||||
name: Validate Prometheus rules
|
||||
@@ -34,9 +38,17 @@ jobs:
|
||||
|
||||
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
||||
with:
|
||||
go-version: '1.27.1'
|
||||
go-version-file: go.mod
|
||||
|
||||
- name: Cache mixin tools
|
||||
id: tools-cache
|
||||
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
||||
with:
|
||||
path: ~/go/bin
|
||||
key: ${{ runner.os }}-${{ runner.arch }}-mixin-tools-${{ hashFiles('contrib/mixin/Makefile', 'go.mod') }}
|
||||
|
||||
- name: Install pinned tools
|
||||
if: steps.tools-cache.outputs.cache-hit != 'true'
|
||||
run: make tools
|
||||
|
||||
- name: Lint and test rules
|
||||
|
||||
Reference in New Issue
Block a user