Skip to content

Commit

Permalink
Update dependencies and Actions (#241)
Browse files Browse the repository at this point in the history
* Update dependencies and Actions

* test fix

* e2e fixes

* fix lint warnings

* Update tests

---------

Co-authored-by: Vitali Pinchuk <[email protected]>
Co-authored-by: asimonok <[email protected]>
  • Loading branch information
3 people authored Feb 3, 2024
1 parent 0cf454e commit db38a2f
Show file tree
Hide file tree
Showing 13 changed files with 8,413 additions and 10,126 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Node.js environment
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'
cache: 'npm'

- name: Install dependencies
Expand Down Expand Up @@ -64,21 +64,21 @@ jobs:
echo "checksum=$(cat ./${{ steps.metadata.outputs.archive-checksum }} | cut -d' ' -f1)" >> $GITHUB_OUTPUT
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
directory: ./coverage/
files: ./coverage/lcov.info
env_vars: OS,PYTHON
fail_ci_if_error: false

- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.metadata.outputs.archive }}
path: ${{ steps.metadata.outputs.archive }}

- name: Upload artifact checksum
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.metadata.outputs.archive-checksum }}
path: ${{ steps.metadata.outputs.archive-checksum }}
8 changes: 4 additions & 4 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Node.js environment
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'
cache: 'npm'

- name: Install dependencies
Expand All @@ -36,7 +36,7 @@ jobs:
- name: Stop Grafana
run: docker-compose down

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: failure()
with:
path: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Node.js environment
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'
cache: 'npm'

- name: Install dependencies
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- Updated README and documentation (#214)
- Add visual editor for working with data sources (#211)
- Update ESLint configuration and refactoring (#237)
- Update dependencies and Actions (#238)

## 5.1.0 (2023-08-11)

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

![ECharts](https://github.com/VolkovLabs/volkovlabs-echarts-panel/raw/main/src/img/dashboard.png)

![Grafana](https://img.shields.io/badge/Grafana-10.0-orange)
![Grafana](https://img.shields.io/badge/Grafana-10.3-orange)
[![YouTube](https://img.shields.io/badge/YouTube-Playlist-red)](https://youtube.com/playlist?list=PLPow72ygztmQHGWFqksEf3LebUfhqBfFu)
![CI](https://github.com/volkovlabs/volkovlabs-echarts-panel/workflows/CI/badge.svg)
![E2E](https://github.com/volkovlabs/volkovlabs-echarts-panel/workflows/E2E/badge.svg)
Expand Down Expand Up @@ -57,8 +57,8 @@ grafana-cli plugins install volkovlabs-echarts-panel

## Documentation

| Section | Description |
| --------------------------- | ------------------------------------------------------------------- |
| Section | Description |
| ----------------------------------------------------------------------------------- | ------------------------------------------------------------------- |
| [ECharts Function](https://volkovlabs.io/plugins/volkovlabs-echarts-panel/options/) | Explains how to configure the main Apache ECharts library function. |
| [Examples](https://volkovlabs.io/plugins/volkovlabs-echarts-panel/examples/) | Explains how to get started with ECharts Examples. |
| [Features](https://volkovlabs.io/plugins/volkovlabs-echarts-panel/features/) | Demonstrates panel features. |
Expand Down
7 changes: 7 additions & 0 deletions jest-setup.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
// Jest setup provided by Grafana scaffolding
import './.config/jest-setup';

import { TextDecoder, TextEncoder } from 'util';

/**
* Assign Text Decoder and Encoder which are required in @grafana/ui
*/
Object.assign(global, { TextDecoder, TextEncoder });
Loading

0 comments on commit db38a2f

Please sign in to comment.