-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (35 loc) · 1.11 KB
/
composition-tests.yaml
File metadata and controls
44 lines (35 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Tests
on:
push:
branches:
- main
pull_request: {}
env:
PROMTOOL_VERSION: "3.10.0"
jobs:
composition-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
id: checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
- name: Install up
uses: upbound/action-up@53fe6395637d884c80d2bbc8c2d75d0ece776ced # v1
with:
skip-login: true
- name: Build project
run: up project build
- name: Run composition tests
run: up test run tests/*
promql-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
- name: Install promtool
run: |
curl -fsSL "https://github.com/prometheus/prometheus/releases/download/v${PROMTOOL_VERSION}/prometheus-${PROMTOOL_VERSION}.linux-amd64.tar.gz" \
| tar xzf - --strip-components=1 -C /usr/local/bin "prometheus-${PROMTOOL_VERSION}.linux-amd64/promtool"
promtool --version
- name: Run PromQL tests
run: make promql-test