Skip to content

Commit

Permalink
Upgrade MegaLinter to v8 (#386)
Browse files Browse the repository at this point in the history
* Upgrade MegaLinter to v8

* renovate

* ignore package-lock

* doc
  • Loading branch information
nvuillam authored Aug 21, 2024
1 parent cbc6d49 commit b27a62d
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
run: sudo chown -Rc $UID .git/
- name: Commit and push applied linter fixes
if: steps.changes.outputs.changed == 1
uses: stefanzweifel/git-auto-commit-action@v4
uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: ${{ github.event.pull_request.head.ref || github.head_ref || github.ref }}
commit_message: "[automation] Update documentation"
8 changes: 4 additions & 4 deletions .github/workflows/mega-linter.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
# Mega-Linter GitHub Action configuration file
# More info at https://oxsecurity.github.io/megalinter
# More info at https://megalinter.io
name: Mega-Linter

on:
Expand Down Expand Up @@ -44,10 +44,10 @@ jobs:
# Mega-Linter
- name: Mega-Linter
id: ml
uses: oxsecurity/megalinter/flavors/javascript@v7
uses: oxsecurity/megalinter/flavors/javascript@v8
env:
# All available variables are described in documentation
# https://oxsecurity.github.io/megalinter/#configuration
# https://megalinter.io/#configuration
VALIDATE_ALL_CODEBASE: true # ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} # Validates all source when push on master, else just the git diff with master. Override with true if you always want to lint all sources
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# ADD YOUR CUSTOM ENV VARIABLES HERE OR DEFINE THEM IN A FILE .mega-linter.yml AT THE ROOT OF YOUR REPOSITORY
Expand All @@ -67,7 +67,7 @@ jobs:
- name: Create Pull Request with applied fixes
id: cpr
if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'pull_request'
uses: peter-evans/create-pull-request@v3
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
commit-message: "[Mega-Linter] Apply linters automatic fixes"
Expand Down
4 changes: 2 additions & 2 deletions .mega-linter.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Configuration file for Mega-Linter
# See all available variables at https://oxsecurity.github.io/megalinter/#configuration and in linters documentation
# See all available variables at https://megalinter.io/#configuration and in linters documentation

APPLY_FIXES: "all" # When true, APPLY_FIXES must also be defined as environment variable (in github/workflows/mega-linter.yml or other CI tool)
FILTER_REGEX_EXCLUDE: (lib/example|\.github|\.vscode|pull_request_template|docs/javascripts)
FILTER_REGEX_EXCLUDE: (lib/example|\.github|\.vscode|pull_request_template|docs/javascripts|package-lock\.json)
DISABLE:
- COPYPASTE
- CSS
Expand Down
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog

## UNRELEASED
## Beta

- Setup renovate
- Upgrade dependencies, including base package node-java-caller
- Upgrade MegaLinter to v8

## [14.6.0] 2024-05-08

Expand Down
6 changes: 5 additions & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog

## UNRELEASED
## Beta

- Setup renovate
- Upgrade dependencies, including base package node-java-caller
- Upgrade MegaLinter to v8

## [14.6.0] 2024-05-08

Expand Down
23 changes: 15 additions & 8 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:base"],
"extends": [
"config:base"
],
"packageRules": [
{
"matchPackagePatterns": [".*"],
"matchUpdateTypes": ["minor", "patch"],
"groupName": "all non-major dependencies",
"groupSlug": "all-minor-patch"
}
{
"matchPackagePatterns": [
".*"
],
"matchUpdateTypes": [
"minor",
"patch"
],
"groupName": "all non-major dependencies",
"groupSlug": "all-minor-patch"
}
]
}
}

0 comments on commit b27a62d

Please sign in to comment.