Skip to content

hosting(grafana): fix users metrics query #766

hosting(grafana): fix users metrics query

hosting(grafana): fix users metrics query #766

Workflow file for this run

name: CI
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- main
paths:
- '**.rs'
- rust-toolchain.toml
- flake.nix
- Cargo.lock
jobs:
tests:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v15
with:
name: syndicationd
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix develop .#ci --accept-flake-config --command just check
coverage:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v15
with:
name: syndicationd
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Generate code coverage
run: nix build .#coverage --accept-flake-config --print-build-logs
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4.6.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: result
dependabot-auto-merge:
if: ${{ github.actor == 'dependabot[bot]' }}
runs-on: ubuntu-latest
needs: [tests]
permissions:
contents: write
pull-requests: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- id: meta
uses: dependabot/fetch-metadata@v2
# merge this PR if update is a semver patch
- if: ${{ steps.meta.outputs.update-type == 'version-update:semver-patch' }}
run: |
gh pr review "${GITHUB_HEAD_REF}" --approve
gh pr merge "${GITHUB_HEAD_REF}" --squash --auto