Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update workflows and dependencies #14

Merged
merged 6 commits into from
Jul 30, 2024
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
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@ webpack.config.ts
coverage/
cypress/
dist/

# Playwright tests
playwright.config.ts
test/
playwright-report
12 changes: 6 additions & 6 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"parserOptions": {
"ecmaVersion": "latest",
"project": "./tsconfig.json",
"sourceType": "module"
"sourceType": "module",
},
"overrides": [
{
"files": ["**/*.test.tsx", "**/*.test.ts"],
"files": ["**/*.test.tsx", "**/*.test.ts", "src/__testUtils__/**/*", "**/__mocks__/**/*"],
"rules": {
"@typescript-eslint/no-explicit-any": "off"
}
}
]
"@typescript-eslint/no-explicit-any": "off",
},
},
],
}
13 changes: 7 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,22 @@ 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
token: ${{ secrets.CODECOV_TOKEN }}
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 }}
22 changes: 11 additions & 11 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 @@ -28,17 +28,17 @@ jobs:
run: npm run build

- name: Start Grafana
run: docker-compose up -d
run: docker compose --profile dev up -d

- name: Run e2e tests
run: npm run e2e
run: npm run test:e2e:docker

- name: Stop Grafana
run: docker-compose down
run: docker compose down

- uses: actions/upload-artifact@v3
if: failure()
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
path: |
cypress/videos
cypress/screenshots/actual
name: playwright-report
path: playwright-report/
retention-days: 30
49 changes: 49 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: E2E Main

on:
push:
branches:
- main
pull_request:
branches:
- main

schedule:
- cron: '0 0 * * *'

workflow_dispatch:

jobs:
tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

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

- name: Install dependencies
run: npm install

- name: Build
run: npm run build

- name: Start Grafana
run: docker compose --profile main up -d

- name: Run e2e tests
run: npm run test:e2e:docker

- name: Stop Grafana
run: docker compose down

- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30
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
122 changes: 3 additions & 119 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,124 +1,8 @@
# Change Log

## 3.2.0 (IN PROGRESS)
## 1.0.0 (IN PROGRESS)

### Features / Enhancements

- Update to Grafana 10.1.5 (#46)
- Update to Plugin Tools 2.1.1 (#46)

## 3.1.0 (2023-10-04)

### Features / Enhancements

- Add YouTube tutorial (#39)
- Update ESLint configuration (#40, #41)
- Update to Grafana 10.1.4 (#43)
- Update to Plugin Tools 2.0.2 (#43)
- Use Grafana Access Policy to sign plugin (#44)

## 3.0.0 (2023-06-25)

### Breaking changes

- Requires Grafana 9 and Grafana 10

### Features / Enhancements

- Add docker compose for minimum Grafana version (#37)
- Remove Grafana 8.5 support (#37)

## 2.5.0 (2023-06-18)

### Features / Enhancements

- Update package.json and workflows (#31, #32, #34)
- Update requirements in README (#33)
- Migrate to Plugin Tools 1.5.2 (#35)
- Update to Grafana 10.0.0 (#36)

## 2.4.0 (2023-05-27)

### Features / Enhancements

- Migrate to Plugin Tools 1.5.0 (#29)
- Update to Node 18 (#30)

## 2.3.0 (2023-05-21)

### Features / Enhancements

- Update CI and Release Workflows to use setup-node cache (#24)
- Rebuild using 9.5.2 (#25)
- Add testing-library/react (#26)
- Add E2E Cypress testing (#27)
- Update plugin signing and README (#28)

## 2.2.0 (2023-02-16)

### Features / Enhancements

- Rebuild using 9.3.6 (#18)
- Update Workflows (#19)
- Add Dashboard image (#20)
- Update Readme and Changelog (#21)
- Update Release workflow (#22)
- Add Levitate Check (#23)

## 2.1.0 (2022-09-22)

### Features / Enhancements

- Rebuild using 9.1.6 (#16)
- Add Compatibility Check Workflow (#17)

## 2.0.0 (2022-06-16)

### Features / Enhancements

- Rebuild using 9.0.0-beta3 (#13)
- Update Requirements to Grafana 8.5.0 (#14)
- Rebuild using 9.0.0 (#15)

## 1.5.0 (2022-05-01)

### Features / Enhancements

- Rebuild using 8.4.3 (#11)
- Rebuild using 8.5.1 (#12)

## 1.4.0 (2022-02-17)

### Features / Enhancements

- Rebuild using 8.3.6 (#8)
- Rebuild using 8.4.0 and use PluginCheck v2 (#9)
- Add Plugin Validator to CI (#10)

## 1.3.0 (2022-01-18)

### Features / Enhancements

- Update Components naming (#4)
- Update CI workflow to use CodeCov@v2 and add LGTM badge
- Add Development mode and minor updates (#6)
- Rebuild using 8.3.4 (#5)

## 1.2.0 (2021-12-12)

### Features / Enhancements

- Upgraded to Grafana 8.3.2

## 1.1.0 (2021-12-02)

### Features / Enhancements

- Upgraded to Grafana 8.3.0
- Minor updates for dashboard, GitHub actions

## 1.0.0 (2021-12-01)

### Features / Enhancements

- Initial release based on Grafana 8.2.5
- Initial release based on Grafana 11.1.0
- Added basic columns editor (#1)
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2021-2023 Volkov Labs
Copyright 2024 Volkov Labs

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
Loading
Loading