Skip to content

Commit

Permalink
Configure Renovate (#29)
Browse files Browse the repository at this point in the history
* Add renovate.json

* renovate

* Upgrade MegaLinter

* circle

* Upgrade njre

* cci

* lycheeignore

* test java 17 & 20

* cspell

* circle

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Nicolas Vuillamy <[email protected]>
  • Loading branch information
renovate[bot] and nvuillam authored Sep 19, 2023
1 parent 2bb9f5c commit 55c8131
Show file tree
Hide file tree
Showing 8 changed files with 89 additions and 42 deletions.
26 changes: 13 additions & 13 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
version: 2.1

orbs:
win: circleci/windows@2.2.0
win: circleci/windows@5.0.0

jobs:
# JDK 8 Node 12
debian-jdk-8-node-12:
debian-jdk-8-node-16:
docker:
- image: openjdk:8-jdk-stretch
- image: openjdk:8
steps:
- checkout
- run:
name: Install base tools
command: apt-get update && apt-get upgrade -y && apt-get -y install wget zip unzip sudo && apt-get clean && echo 'Installed linux dependencies'
- run:
name: Install node
command: curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt-get update && apt-get install -y nodejs
command: curl -sL https://deb.nodesource.com/setup_16.x | bash - && apt-get update && apt-get install -y nodejs
- run:
name: Install dependencies
command: npm ci
Expand All @@ -24,7 +24,7 @@ jobs:
command: npm run test:debug

# JDK 9 Node 12
debian-jdk-9-node-12:
debian-jdk-9-node-18:
docker:
- image: openjdk:9
steps:
Expand All @@ -34,7 +34,7 @@ jobs:
command: apt-get update && apt-get upgrade -y && apt-get -y install wget zip unzip sudo && apt-get clean && echo 'Installed linux dependencies'
- run:
name: Install node
command: curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt-get update && apt-get install -y nodejs
command: curl -sL https://deb.nodesource.com/setup_18.x | bash - && apt-get update && apt-get install -y nodejs
- run:
name: Install dependencies
command: npm ci
Expand All @@ -43,7 +43,7 @@ jobs:
command: npm run test

# JDK 10 Node 12
debian-jdk-10-node-12:
debian-jdk-10-node-18:
docker:
- image: openjdk:10
steps:
Expand All @@ -53,7 +53,7 @@ jobs:
command: apt-get update && apt-get upgrade -y && apt-get -y install wget zip unzip sudo && apt-get clean && echo 'Installed linux dependencies'
- run:
name: Install node
command: curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt-get update && apt-get install -y nodejs
command: curl -sL https://deb.nodesource.com/setup_18.x | bash - && apt-get update && apt-get install -y nodejs
- run:
name: Install dependencies
command: npm ci
Expand All @@ -62,7 +62,7 @@ jobs:
command: npm run test

# JDK 11 Node 12
debian-jdk-11-node-12:
debian-jdk-11-node-18:
docker:
- image: openjdk:11
steps:
Expand All @@ -72,7 +72,7 @@ jobs:
command: apt-get update && apt-get upgrade -y && apt-get -y install wget zip unzip sudo && apt-get clean && echo 'Installed linux dependencies'
- run:
name: Install node
command: curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt-get update && apt-get install -y nodejs
command: curl -sL https://deb.nodesource.com/setup_18.x | bash - && apt-get update && apt-get install -y nodejs
- run:
name: Install dependencies
command: npm ci
Expand All @@ -81,7 +81,7 @@ jobs:
command: npm run test

# JDK 12 Node 12
debian-jdk-12-node-12:
debian-jdk-12-node-18:
docker:
- image: openjdk:12-oracle
steps:
Expand All @@ -91,7 +91,7 @@ jobs:
command: apt-get update && apt-get upgrade -y && apt-get -y install wget zip unzip sudo && apt-get clean && echo 'Installed linux dependencies'
- run:
name: Install node
command: curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt-get update && apt-get install -y nodejs
command: curl -sL https://deb.nodesource.com/setup_18.x | bash - && apt-get update && apt-get install -y nodejs
- run:
name: Install dependencies
command: npm ci
Expand Down Expand Up @@ -148,7 +148,7 @@ workflows:
version: 2
"java-caller-lint-build-test":
jobs:
- debian-jdk-8-node-12
- debian-jdk-8-node-16
# - debian-jdk-9-node-12
# - debian-jdk-10-node-12
# - debian-jdk-11-node-12
Expand Down
3 changes: 2 additions & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"CLASSPATH",
"Classpath",
"Gowans",
"Perso",
"PROSELINT",
"Perso",
"SIGINT",
"Vuillamy",
"circleci",
Expand All @@ -28,6 +28,7 @@
"javac",
"javacaller",
"lcov",
"lycheeignore",
"markdownlint",
"megalinter",
"myfolder",
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/mega-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,18 @@ on:
pull_request:
branches: [master]

permissions: read-all

jobs:
build:
name: Mega-Linter
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push, comment issues & post new PR
# Remove the ones you do not need
contents: write
issues: write
pull-requests: write
steps:
# Git Checkout
- name: Checkout Code
Expand All @@ -22,7 +30,7 @@ jobs:

# Mega-Linter
- name: Mega-Linter
uses: oxsecurity/megalinter/flavors/cupcake@v6
uses: oxsecurity/megalinter/flavors/cupcake@v7
env:
# All available variables are described in documentation
# https://github.com/oxsecurity/megalinter#configuration
Expand Down
26 changes: 26 additions & 0 deletions .lycheeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# These links are ignored by lychee link checker: https://github.com/lycheeverse/lychee
# The file allows you to list multiple regular expressions for exclusion (one pattern per line).
# The `.lycheeignore` file is only used for excluding URLs, not paths. Use the `exclude_path` key in the `lychee.toml` file. ref: https://github.com/lycheeverse/lycheeverse.github.io/blob/master/recipes/excluding-paths.md

my-company.com
https://megalinter.io/
https://megalinter.io/flavors/
https://megalinter.io/configuration/
https://www.linkedin.com/
https://twitter.com
https://twitter.com/intent/tweet
https://fonts.gstatic.com
https://img.shields.io
http://mozilla.org/MPL/2.0/
https://github.com/sider/goodcheck
https://api.github.com/repos/powershell/powershell/releases
https://storage.googleapis.com/dart-archive/channels/stable/release
https://stylelint.io/user-guide/integrations/other#analysis-platform-engines
https://raw.githubusercontent.com/some_org/some_repo/mega-linter-rules
https://raw.githubusercontent.com/cookiejar/megalinter-plugin-cookiejar/main/cookietemplate.mega-linter-descriptor.yml
https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/security.ico
https://github.com/oxsecurity/megalinter/raw/main/docs/assets/icons/swift.ico
https://stylelint.io/user-guide/integrations/other#analysis-platform-engines
https://github.com/pmd/pmd/releases/download/pmd_releases
https://twitter.com/intent/tweet*
circleci/*
50 changes: 25 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"dependencies": {
"debug": "^4.3.4",
"fs-extra": "^10.1.0",
"njre": "^0.3.0"
"njre": "^1.0.0"
},
"devDependencies": {
"@babel/eslint-parser": "^7.19.1",
Expand Down
12 changes: 12 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:base"],
"packageRules": [
{
"matchPackagePatterns": [".*"],
"matchUpdateTypes": ["minor", "patch"],
"groupName": "all non-major dependencies",
"groupSlug": "all-minor-patch"
}
]
}
2 changes: 1 addition & 1 deletion test/java-install.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const {
checkStdOutIncludesOneOf,
} = require("./helpers/common");

const javaVersionsToTest = [8, 9, 10, 11, 12, 13, 14];
const javaVersionsToTest = [8, 9, 10, 11, 12, 13, 14, 17, 20];
const javaTypesToTest = ['jre', 'jdk'];

describe("Test all installs", () => {
Expand Down

0 comments on commit 55c8131

Please sign in to comment.