Skip to content

Commit 68e145a

Browse files
committed
CI: Add eslint step
No need to add it explicitly, it's automatically executed by `yarn build` if the dependencies are satisfied. Also simplify github actions
1 parent 076da95 commit 68e145a

File tree

4 files changed

+1519
-600
lines changed

4 files changed

+1519
-600
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
11+
- name: Setup Node.js environment
12+
uses: actions/setup-node@v3
13+
with:
14+
node-version: '14'
15+
cache: 'yarn'
16+
17+
- name: Install dependencies
18+
run: yarn install --frozen-lockfile
19+
20+
- name: Build and test frontend
21+
run: yarn build

.github/workflows/node.js.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

package.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,16 @@
1717
"@grafana/runtime": "^9.0.4",
1818
"@grafana/toolkit": "^9.0.4",
1919
"@grafana/ui": "^9.0.4",
20-
"@types/lodash": "4.14.182"
20+
"@types/lodash": "4.14.182",
21+
"@testing-library/jest-dom": "5.16.4",
22+
"@testing-library/react": "^12.1.5",
23+
"eslint": "^8.19.0",
24+
"@typescript-eslint/eslint-plugin": "^5.30.6",
25+
"eslint-plugin-react": "^7.30.1",
26+
"eslint-plugin-react-hooks": "^4.6.0",
27+
"@typescript-eslint/parser": "^5.33.0",
28+
"@grafana/eslint-config": "^5.0.0",
29+
"eslint-plugin-jsdoc": "^39.3.6"
2130
},
2231
"engines": {
2332
"node": ">=14"

0 commit comments

Comments
 (0)