From 53c8bee91ed6f2b83c4717a1f1f3428e138ef705 Mon Sep 17 00:00:00 2001 From: "David L. Qiu" Date: Wed, 21 Jun 2023 15:31:51 -0700 Subject: [PATCH] fix lint workflow --- .github/workflows/lint.yml | 19 +++++++++++++++++++ .github/workflows/tests.yml | 16 ---------------- 2 files changed, 19 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/lint.yml delete mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 000000000..dbc3498f1 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,19 @@ +name: JS Lint +on: + - pull_request + +jobs: + js_lint: + name: JS Lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 + with: + python_version: "3.10.x" + - name: Install JupyterLab + run: pip install jupyterlab~=3.6 + - name: Install JS dependencies + run: jlpm + - name: Run JS Lint + run: jlpm lerna run lint diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml deleted file mode 100644 index 77b2bb17e..000000000 --- a/.github/workflows/tests.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Tests -on: - pull_request: - types: [labeled, unlabeled, opened, reopened, edited, synchronize] - -jobs: - test_lint: - name: Test Lint - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - cache: 'yarn' - - name: Run Linters - run: lerna run lint \ No newline at end of file