From 3d6070eedbf1e28a5c1bf48f7d114399a9ed1f34 Mon Sep 17 00:00:00 2001 From: Nicolas Vuillamy Date: Sat, 17 Oct 2020 18:57:36 +0200 Subject: [PATCH] Switch from Super-Linter to Mega-Linter (#109) --- .github/workflows/linter.yml | 20 ++++++++++++++------ README.md | 2 +- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index e12094e3..1874a194 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -4,7 +4,7 @@ ## Linter GitHub Actions ## ########################### ########################### -name: Lint Code Base +name: Mega-Linter # # Documentation: @@ -16,8 +16,6 @@ name: Lint Code Base ############################# on: push: - branches-ignore: [master] - # Remove the line above to run when pushing to master pull_request: branches: [master] @@ -27,7 +25,7 @@ on: jobs: build: # Name the Job - name: Lint Code Base + name: Mega-Linter # Set the agent to run on runs-on: ubuntu-latest @@ -44,8 +42,8 @@ jobs: ################################ # Run Linter against code base # ################################ - - name: Lint Code Base - uses: github/super-linter@v3 + - name: Mega-Linter + uses: nvuillam/mega-linter@v4 env: DEFAULT_BRANCH: master GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -57,3 +55,13 @@ jobs: # VALIDATE_MD: false # To reactivate once SuperLinter allows to ignore .github folder LINTER_RULES_PATH: "." JAVASCRIPT_ES_CONFIG_FILE: .eslintrc.js + + # Upload Mega-Linter artifacts. They will be available on Github action page "Artifacts" section + - name: Archive production artifacts + if: ${{ success() }} || ${{ failure() }} + uses: actions/upload-artifact@v2 + with: + name: Mega-Linter reports + path: | + report + mega-linter.log diff --git a/README.md b/README.md index 6d851b71..fbcf9da2 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ [![CircleCI](https://circleci.com/gh/nvuillam/npm-groovy-lint/tree/master.svg?style=shield)](https://circleci.com/gh/nvuillam/npm-groovy-lint/tree/master) [![codecov](https://codecov.io/gh/nvuillam/npm-groovy-lint/branch/master/graph/badge.svg)](https://codecov.io/gh/nvuillam/npm-groovy-lint) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/60cd9f66f3014ee09b821ce6c3f631b6)](https://www.codacy.com/manual/nvuillam/npm-groovy-lint?utm_source=github.com&utm_medium=referral&utm_content=nvuillam/npm-groovy-lint&utm_campaign=Badge_Grade) -[![GitHub Super-Linter](https://github.com/nvuillam/npm-groovy-lint/workflows/Lint%20Code%20Base/badge.svg?branch=master)](https://github.com/marketplace/actions/super-linter) +[![Mega-Linter](https://github.com/nvuillam/npm-groovy-lint/workflows/Mega-Linter/badge.svg?branch=master)](https://github.com/marketplace/actions/mega-linter) [![GitHub contributors](https://img.shields.io/github/contributors/nvuillam/npm-groovy-lint.svg)](https://gitHub.com/nvuillam/npm-groovy-lint/graphs/contributors/) [![GitHub stars](https://img.shields.io/github/stars/nvuillam/npm-groovy-lint?label=Star&maxAge=2592000)](https://GitHub.com/nvuillam/npm-groovy-lint/stargazers/) [![Docker Pulls](https://img.shields.io/docker/pulls/nvuillam/npm-groovy-lint)](https://hub.docker.com/r/nvuillam/npm-groovy-lint)