Skip to content
This repository has been archived by the owner on Apr 27, 2023. It is now read-only.

feat: support light mode #8

Merged
merged 10 commits into from
Nov 14, 2022
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@ jobs:
key: ${{ runner.os }}-${{ matrix.node-version }}-node-modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.node-version }}-node-modules-

- name: Pull dependencies
run: yarn
- name: Cache Cypress Binary
id: cache-cypress-binary
uses: actions/cache@v2
with:
path: cypress/cache
key: cypress-binary-${{ hashFiles('yarn.lock') }}

- name: Pull dependencies
run: yarn

- run: yarn cypress install
- name: Sign plugin
run: yarn sign
env:
Expand All @@ -57,6 +57,7 @@ jobs:
# We already tested it extensively in the other repository
- name: Run grafana server
run: docker-compose -f docker-compose.yml up -d

- name: Run tests
run: yarn cy:ci
env:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ jobs:
key: ${{ runner.os }}-${{ matrix.node-version }}-node-modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.node-version }}-node-modules-
- name: Pull dependencies
run: yarn
- name: Cache Cypress Binary
id: cache-cypress-binary
uses: actions/cache@v2
with:
path: cypress/cache
key: cypress-binary-${{ hashFiles('yarn.lock') }}

- name: Pull dependencies
run: yarn
- run: yarn cypress install
- name: Sign plugin
run: yarn sign
env:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: "3.9"
services:
grafana:
image: grafana/grafana:8.1.1
image: grafana/grafana:9.2.4
volumes:
- ./dist:/var/lib/grafana/plugins/pyroscope-panel
- ./grafana.ini:/etc/grafana/grafana.ini
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"postinstall": "cp -r node_modules/@pyroscope/panel-plugin/dist .",
"cy:open": "cypress open",
"cy:ci": "cypress run",
"sign": "grafana-toolkit plugin:sign"
"sign": "grafana-toolkit plugin:sign",
"cypress": "cypress"
},
"author": "Pyroscope devs",
"license": "Apache-2.0",
Expand All @@ -15,7 +16,7 @@
},
"dependencies": {
"@grafana/toolkit": "^8.3.2",
"@pyroscope/panel-plugin": "1.2.3",
"@pyroscope/panel-plugin": "1.4.0",
"cypress": "^9.5.0"
}
}
Loading