feat(scheduling): add scheduling options #24
Workflow file for this run
This file contains hidden or 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
| 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 |