diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index ac1a3abefb..a7b2fa32a3 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -1,55 +1,36 @@ ---- -########################### -########################### -## Linter GitHub Actions ## -########################### -########################### -name: Lint Code Base - -# -# Documentation: -# https://help.github.com/en/articles/workflow-syntax-for-github-actions -# - -############################# -# Start the job on all push # -############################# +name: Lint Repo on: - pull_request: - branches: [master] - -############### -# Set the Job # -############### + push: + branches: + - master + release: + types: + - published jobs: build: - # Name the Job - name: Lint Code Base - # Set the agent to run on + name: Lint runs-on: ubuntu-latest - - ################## - # Load all steps # - ################## + strategy: + matrix: + node-version: [12.x] steps: - ########################## - # Checkout the code base # - ########################## - - name: Checkout Code + - name: Checkout Release from lens uses: actions/checkout@v2 with: - # Full git history is needed to get a proper list of changed files within `super-linter` fetch-depth: 0 - ################################ - # Run Linter against code base # - ################################ - - name: Lint Code Base - uses: github/super-linter@v3 - env: - FILTER_REGEX_INCLUDE: "**/*.(ts|tsx|js)" - VALIDATE_JAVASCRIPT_ES: true - JAVASCRIPT_ES_CONFIG_FILE: .eslintrc.json - LINTER_RULES_PATH: / - DEFAULT_BRANCH: master - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: git config + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + + - 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 diff --git a/README.md b/README.md index f31f810a64..7d86bf6c52 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,6 @@ [![Build Status](https://dev.azure.com/lensapp/lensapp/_apis/build/status/lensapp.lens?branchName=master)](https://dev.azure.com/lensapp/lensapp/_build/latest?definitionId=1&branchName=master) [![Releases](https://img.shields.io/github/downloads/lensapp/lens/total.svg)](https://github.com/lensapp/lens/releases?label=Downloads) [![Chat on Slack](https://img.shields.io/badge/chat-on%20slack-blue.svg?logo=slack&longCache=true&style=flat)](https://join.slack.com/t/k8slens/shared_invite/enQtOTc5NjAyNjYyOTk4LWU1NDQ0ZGFkOWJkNTRhYTc2YjVmZDdkM2FkNGM5MjhiYTRhMDU2NDQ1MzIyMDA4ZGZlNmExOTc0N2JmY2M3ZGI) -[![GitHub Super-Linter](https://github.com/lensapp/lens/workflows/Lint%20Code%20Base/badge.svg)](https://github.com/marketplace/actions/super-linter) World’s most popular Kubernetes IDE provides a simplified, consistent entry point for developers, testers, integrators, and DevOps, to ship code faster at scale. Lens is the only IDE you’ll ever need to take control of your Kubernetes clusters. It is a standalone application for MacOS, Windows and Linux operating systems. Lens is an open source project and free!