1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

lint the repo as a github action (#1541)

* lint the repo as a github action

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2020-11-27 10:41:51 -05:00 committed by GitHub
parent 686cb122a3
commit 28abd66857
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 29 additions and 5 deletions

View File

@ -121,8 +121,6 @@ jobs:
displayName: Cache Yarn packages displayName: Cache Yarn packages
- script: make node_modules - script: make node_modules
displayName: Install dependencies displayName: Install dependencies
- script: make lint
displayName: Lint
- script: make build-npm - script: make build-npm
displayName: Generate npm package displayName: Generate npm package
- script: make -j2 build-extensions - script: make -j2 build-extensions

26
.github/workflows/linter.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: Lint Repo
on:
- pull_request
jobs:
build:
name: Lint
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- name: Checkout Release from lens
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Using Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install deps
run: yarn install
- name: Lint
run: yarn run lint

View File

@ -1,7 +1,7 @@
import '@testing-library/jest-dom/extend-expect'; import "@testing-library/jest-dom/extend-expect";
import { fireEvent, render, screen, waitFor } from '@testing-library/react'; import { fireEvent, render, screen, waitFor } from "@testing-library/react";
import fse from "fs-extra"; import fse from "fs-extra";
import React from 'react'; import React from "react";
import { extensionDiscovery } from "../../../../extensions/extension-discovery"; import { extensionDiscovery } from "../../../../extensions/extension-discovery";
import { ConfirmDialog } from "../../confirm-dialog"; import { ConfirmDialog } from "../../confirm-dialog";
import { Notifications } from "../../notifications"; import { Notifications } from "../../notifications";