Skip to content

Commit

Permalink
Switch from Super-Linter to Mega-Linter (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
nvuillam authored Oct 17, 2020
1 parent 4155c66 commit 3d6070e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
## Linter GitHub Actions ##
###########################
###########################
name: Lint Code Base
name: Mega-Linter

#
# Documentation:
Expand All @@ -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]

Expand All @@ -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

Expand All @@ -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 }}
Expand All @@ -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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3d6070e

Please sign in to comment.