Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
112 changes: 0 additions & 112 deletions .eslintrc.js

This file was deleted.

2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ blank_issues_enabled: false
contact_links:
- name: Bug Report or Feature Request
url: https://github.com/perses/perses/issues
about: Please open all issues in the perses/perses repository.
about: Please open all issues in the perses/perses repository.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/other.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: Other
description: Other kind of issue.
labels: [ "bug" ]
labels: ['bug']
body:
- type: markdown
attributes:
Expand All @@ -11,4 +11,4 @@ body:
Even if it concerns a specific plugin, if your issue is a feature request or bug report please create it in the [perses/perses](https://github.com/perses/perses/issues) repository instead.
- type: textarea
attributes:
label: Description
label: Description
24 changes: 12 additions & 12 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
version: 2
updates:
- package-ecosystem: "gomod"
- package-ecosystem: 'gomod'
directories:
- "**/*"
- '**/*'
open-pull-requests-limit: 10
schedule:
interval: "weekly"
interval: 'weekly'
groups:
gomod:
patterns:
- "*"
- package-ecosystem: "github-actions"
directory: "/"
- '*'
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: "weekly"
interval: 'weekly'
groups:
actions:
patterns:
- "*"
- package-ecosystem: "docker"
- '*'
- package-ecosystem: 'docker'
directories:
- "/"
- '/'
schedule:
interval: "weekly"
interval: 'weekly'
groups:
docker:
patterns:
- "*"
- '*'
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
build:
name: "build"
name: 'build'
runs-on: ubuntu-latest
steps:
- name: checkout
Expand All @@ -22,11 +22,11 @@ jobs:
enable_npm: true
enable_go: true
enable_cue: true
cue_version: "v0.16.1"
cue_version: 'v0.16.1'
- name: install percli
uses: perses/cli-actions/actions/install_percli@v0.2.1
with:
cli-version: "v0.54.0"
cli-version: 'v0.54.0'
- name: cache cue deps
uses: actions/cache@v6
with:
Expand All @@ -52,7 +52,7 @@ jobs:
!node_modules

e2e:
name: "e2e tests"
name: 'e2e tests'
needs: build # <--- CRITICAL: Wait for build to finish. PERSES_PLUGIN_ARCHIVE_PATHS accepts archive files only
runs-on: ubuntu-latest
steps:
Expand All @@ -72,12 +72,12 @@ jobs:
- name: start dev env
uses: hoverkraft-tech/compose-action@v3.1.0
with:
compose-file: .github/dev/docker-compose.ci.yml
compose-file: .github/dev/docker-compose.ci.yml
- uses: perses/github-actions@v0.12.0
- uses: ./.github/perses-ci/actions/setup_environment
with:
enable_npm: true
nvmrc_path: ".nvmrc"
nvmrc_path: '.nvmrc'
- name: install dependencies
run: npm ci
- name: install Playwright browsers
Expand All @@ -87,8 +87,8 @@ jobs:
run: npm run test:ci --prefix e2e -- src/tests

release:
name: "release"
needs: "build"
name: 'release'
needs: 'build'
runs-on: ubuntu-latest
permissions:
contents: write
Expand All @@ -104,8 +104,8 @@ jobs:
enable_npm: true
enable_go: true
enable_cue: true
cue_version: "v0.16.1"
nvmrc_path: "./.nvmrc"
cue_version: 'v0.16.1'
nvmrc_path: './.nvmrc'
- name: Download archive
uses: actions/download-artifact@v8
with:
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/cue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
checkformat-cue:
name: "Check CUE files format"
name: 'Check CUE files format'
runs-on: ubuntu-latest
steps:
- name: checkout
Expand All @@ -18,10 +18,10 @@ jobs:
with:
enable_go: true
enable_cue: true
cue_version: "v0.16.1"
cue_version: 'v0.16.1'
- run: make checkformat-cue
validate-schemas:
name: "Validate plugin schemas"
name: 'Validate plugin schemas'
runs-on: ubuntu-latest
steps:
- name: checkout
Expand All @@ -31,11 +31,11 @@ jobs:
with:
enable_go: true
enable_cue: true
cue_version: "v0.16.1"
cue_version: 'v0.16.1'
- name: Install percli
uses: perses/cli-actions/actions/install_percli@v0.2.1
with:
cli-version: "v0.54.0"
cli-version: 'v0.54.0'
- uses: actions/cache@v6
id: cache
with:
Expand All @@ -47,7 +47,7 @@ jobs:
- run: make test-schemas-plugins

module-check:
name: "Check plugin modules"
name: 'Check plugin modules'
runs-on: ubuntu-latest
steps:
- name: checkout
Expand All @@ -57,7 +57,7 @@ jobs:
with:
enable_go: true
enable_cue: true
cue_version: "v0.16.1"
cue_version: 'v0.16.1'
- uses: actions/cache@v6
id: cache
with:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

jobs:
docs-fmt:
name: "Check docs format"
name: 'Check docs format'
runs-on: ubuntu-latest
steps:
- name: checkout
Expand All @@ -25,5 +25,3 @@ jobs:
run: go install github.com/bwplotka/mdox@latest
- name: check docs
run: make checkdocs


6 changes: 3 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ concurrency:

jobs:
test-go:
name: "test-go"
name: 'test-go'
runs-on: ubuntu-latest
steps:
- name: checkout
Expand All @@ -22,7 +22,7 @@ jobs:
with:
enable_go: true
enable_cue: true # needed for DaC CLI commands unit tests
cue_version: "v0.16.1"
cue_version: 'v0.16.1'
- name: test
run: make test
golangci:
Expand All @@ -44,7 +44,7 @@ jobs:
version: v2.12.2
- run: make golangci-lint
checklicense:
name: "check license headers"
name: 'check license headers'
runs-on: ubuntu-latest
steps:
- name: checkout
Expand Down
53 changes: 53 additions & 0 deletions .github/workflows/react-doctor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# React Doctor — finds security, performance, correctness, accessibility,
# bundle-size, and architecture issues in React codebases.
#
# Docs: https://www.react.doctor/ci
# Source: https://github.com/millionco/react-doctor

name: React Doctor

on:
# Scans the PR's changed files and posts a sticky summary comment listing only the new issues introduced relative to the merge base of the target branch.
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
# Scans `main` on every push to track the health-score trend and catch regressions that slipped past PR review.
push:
branches: ['main']

permissions:
contents: read
pull-requests: write
issues: write
statuses: write

# Cancels any in-flight scan for the same PR (or branch, on push) the moment a new commit arrives, so reviewers only ever see the latest run.
concurrency:
group: react-doctor-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
react-doctor:
runs-on: ubuntu-latest
steps:
# fetch-depth: 0 gives React Doctor the full git history it needs to find the merge base with the target branch. Without it a shallow checkout has no merge base, so PR runs can't compare against the base and fall back to reporting every issue in the changed files (pre-existing ones included) instead of only the ones the PR introduced.
- uses: actions/checkout@v5
with:
fetch-depth: 0

- uses: millionco/react-doctor@v2
# Advisory by default: React Doctor reports findings on every PR — a
# sticky summary comment, inline review comments, and a commit status
# with the health score — but never fails the check, so it won't red-X
# a teammate's PR on day one. When your team trusts the signal, graduate
# the gate: uncomment the block below and set blocking to "error" (fail
# on new error-severity findings) or "warning" (fail on any finding).
# Full reference: https://www.react.doctor/ci
# with:
# blocking: error # Gate level: "none" (advisory, the default) | "warning" | "error"
# scope: full # On PRs, scan the whole project instead of just changed files
# comment: false # Disable the sticky PR summary comment
# review-comments: false # Disable inline review comments on changed lines
# commit-status: false # Disable the commit status (score + counts, links to the run)
# version: "0.4.0" # Pin to a specific react-doctor version instead of "latest"
# directory: apps/web # Scan a sub-directory (default: ".")
# project: "web,admin" # In a monorepo, scan specific workspace project(s)
Loading
Loading