Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from Super-Linter to Mega-Linter #109

Merged
merged 1 commit into from Oct 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 14 additions & 6 deletions .github/workflows/linter.yml
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
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