Skip to content

Commit 8cfd06f

Browse files
committed
ci: use node 22 and enable corepack
1 parent 6fa4b7d commit 8cfd06f

File tree

7 files changed

+262
-625
lines changed

7 files changed

+262
-625
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,20 @@ jobs:
1414
build:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v3
17+
- name: Checkout code
18+
uses: actions/checkout@v3
19+
20+
- name: Enable Corepack
21+
run: corepack enable
22+
1823
- name: Setup Node.js environment
19-
uses: actions/setup-node@v3
24+
uses: actions/setup-node@v4
2025
with:
21-
node-version: "20"
26+
node-version: "22"
2227
cache: "yarn"
2328

2429
- name: Install dependencies
25-
run: yarn install --immutable --prefer-offline
30+
run: yarn install --immutable
2631

2732
- name: Check types
2833
run: yarn run typecheck

.github/workflows/is-compatible.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,23 @@ jobs:
55
compatibilitycheck:
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v3
8+
- name: Checkout code
9+
uses: actions/checkout@v3
10+
11+
- name: Enable Corepack
12+
run: corepack enable
13+
914
- name: Setup Node.js environment
10-
uses: actions/setup-node@v3
15+
uses: actions/setup-node@v4
1116
with:
12-
node-version: '20'
13-
cache: 'yarn'
17+
node-version: "22"
18+
cache: "yarn"
19+
1420
- name: Install dependencies
15-
run: yarn install --immutable --prefer-offline
21+
run: yarn install --immutable
22+
1623
- name: Build plugin
1724
run: yarn run build
25+
1826
- name: Compatibility check
1927
run: npx @grafana/levitate@latest is-compatible --path src/module.ts --target @grafana/data,@grafana/ui,@grafana/runtime

.github/workflows/release.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,16 @@ jobs:
1111
env:
1212
GRAFANA_ACCESS_POLICY_TOKEN: ${{ secrets.GRAFANA_ACCESS_POLICY_TOKEN }}
1313
steps:
14-
- uses: actions/checkout@v3
14+
- name: Checkout code
15+
uses: actions/checkout@v3
16+
17+
- name: Enable Corepack
18+
run: corepack enable
19+
1520
- name: Setup Node.js environment
16-
uses: actions/setup-node@v3
21+
uses: actions/setup-node@v4
1722
with:
18-
node-version: "20"
23+
node-version: "22"
1924
cache: "yarn"
2025

2126
- name: Setup Go environment
@@ -24,7 +29,7 @@ jobs:
2429
go-version: "1.22"
2530

2631
- name: Install dependencies
27-
run: yarn install --immutable --prefer-offline
32+
run: yarn install --immutable
2833

2934
- name: Build and test frontend
3035
run: yarn run build

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Yarn
2+
.pnp.*
23
.yarn/*
3-
!.yarn/cache
44
!.yarn/patches
55
!.yarn/plugins
66
!.yarn/releases

docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ services:
88
context: ./.config
99
args:
1010
grafana_image: ${GRAFANA_IMAGE:-grafana-enterprise}
11-
grafana_version: ${GRAFANA_VERSION:-10.0.3}
11+
grafana_version: ${GRAFANA_VERSION:-12.0.0}
1212
ports:
1313
- 3000:3000/tcp
1414
volumes:

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"@swc/core": "^1.11.24",
2828
"@swc/helpers": "^0.5.17",
2929
"@swc/jest": "^0.2.38",
30+
"@testing-library/dom": "^10.0.0",
3031
"@testing-library/jest-dom": "^6.6.3",
3132
"@testing-library/react": "^16.3.0",
3233
"@types/eslint": "^9.6.1",
@@ -38,7 +39,7 @@
3839
"@typescript-eslint/parser": "^8.32.1",
3940
"copy-webpack-plugin": "^13.0.0",
4041
"css-loader": "^7.1.2",
41-
"eslint": "^9.26.0",
42+
"eslint": "^8.0.0",
4243
"eslint-config-prettier": "^8.8.0",
4344
"eslint-plugin-deprecation": "^3.0.0",
4445
"eslint-plugin-jsdoc": "^50.6.14",
@@ -77,8 +78,8 @@
7778
"@grafana/runtime": "12.0.0",
7879
"@grafana/schema": "^11.5.3",
7980
"@grafana/ui": "12.0.0",
80-
"react": "19.1.0",
81-
"react-dom": "19.1.0",
81+
"react": "^18.0.0",
82+
"react-dom": "^18.0.0",
8283
"tslib": "2.8.1"
8384
},
8485
"packageManager": "[email protected]"

0 commit comments

Comments
 (0)