Skip to content
check-square

GitHub Action

Promtool action

v1 Latest version

Promtool action

check-square

Promtool action

Docker container action for running promtool

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Promtool action

uses: MatsuriJapon/promtool-action@v1

Learn more about this action in MatsuriJapon/promtool-action

Choose a version

Promtool docker action

This action executes promtool with the given arguments.

Inputs

args

The arguments to pass to promtool

Example usage

on: [push]
jobs:
    test-alert-rules:
    runs-on: ubuntu-18.04
    steps:
    - name: 'Checkout'
      uses: 'actions/checkout@v2'
    - name: 'Run promtool tests'
      uses: 'MatsuriJapon/promtool-action@v1'
      with:
        args: 'test rules $(find monitoring/test -name *.yaml)