Skip to content

Commit b93079e

Browse files
committed
Merge branch 'main' into challenge-int-format
2 parents 80220c7 + b458bdf commit b93079e

87 files changed

Lines changed: 2283 additions & 2910 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: [green-code-initiative]

.github/workflows/ci.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,19 @@ on:
88
pull_request:
99
types: [opened, synchronize, reopened]
1010

11+
permissions:
12+
contents: read
13+
pull-requests: write
14+
1115
jobs:
1216
test:
1317
name: Lint and Test
1418
runs-on: ubuntu-latest
1519

1620
strategy:
1721
matrix:
18-
node-version: [18.x, 20.x]
19-
java-version: [11]
22+
node-version: [22.x, 24.x]
23+
java-version: [17]
2024

2125
steps:
2226
- name: Checkout
@@ -55,7 +59,7 @@ jobs:
5559
uses: SonarSource/sonarqube-scan-action@master
5660
if: |
5761
(github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) &&
58-
matrix.node-version == '20.x' &&
62+
matrix.node-version == '24.x' &&
5963
github.actor != 'dependabot[bot]'
6064
env:
6165
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -67,18 +71,18 @@ jobs:
6771

6872
steps:
6973
- name: Checkout
70-
uses: actions/checkout@v4
74+
uses: actions/checkout@v6
7175

72-
- name: Use Node.js 20.x
73-
uses: actions/setup-node@v4
76+
- name: Use Node.js 24.x
77+
uses: actions/setup-node@v6
7478
with:
75-
node-version: 20.x
79+
node-version: 24.x
7680

77-
- name: Use JDK 11
78-
uses: actions/setup-java@v4
81+
- name: Use JDK 17
82+
uses: actions/setup-java@v5
7983
with:
8084
distribution: temurin
81-
java-version: 11
85+
java-version: 17
8286

8387
- name: Install dependencies
8488
run: yarn install --immutable

.github/workflows/publish.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ permissions:
99
packages: write
1010

1111
env:
12-
NODE_VERSION: 20.x
12+
NODE_VERSION: 24.x
1313

1414
jobs:
1515
publish-npm:
@@ -18,12 +18,12 @@ jobs:
1818
id-token: write
1919
steps:
2020
- name: Checkout tag "${{ github.ref_name }}"
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@v6
2222
with:
2323
ref: ${{ github.ref_name }}
2424

2525
- name: Use Node.js ${{ env.NODE_VERSION }}
26-
uses: actions/setup-node@v4
26+
uses: actions/setup-node@v6
2727
with:
2828
node-version: ${{ env.NODE_VERSION }}
2929
registry-url: "https://registry.npmjs.org"
@@ -45,12 +45,12 @@ jobs:
4545
runs-on: ubuntu-latest
4646
steps:
4747
- name: Checkout tag "${{ github.ref_name }}"
48-
uses: actions/checkout@v4
48+
uses: actions/checkout@v6
4949
with:
5050
ref: ${{ github.ref_name }}
5151

5252
- name: Use Node.js ${{ env.NODE_VERSION }}
53-
uses: actions/setup-node@v4
53+
uses: actions/setup-node@v6
5454
with:
5555
node-version: ${{ env.NODE_VERSION }}
5656

@@ -66,7 +66,7 @@ jobs:
6666
working-directory: eslint-plugin
6767

6868
- name: Configure GitHub Packages registry
69-
uses: bduff9/use-npmrc@v2.0.0
69+
uses: bduff9/use-npmrc@dbe8c5121963fc22c8825da5cfb3b58aa18e3d1b # v2.0.0
7070
with:
7171
working-directory: eslint-plugin
7272
dot-npmrc: |

.github/workflows/release.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ permissions:
1616
contents: write
1717

1818
env:
19-
NODE_VERSION: 20.x
20-
JDK_VERSION: 11
19+
NODE_VERSION: 24.x
20+
JDK_VERSION: 17
2121

2222
jobs:
2323
release:
@@ -26,18 +26,18 @@ jobs:
2626
if: contains('["dedece35","glalloue","jhertout","jules-delecour-dav","olegoaer","zippy1978","utarwyn","mdubois81"]', github.actor)
2727
steps:
2828
- name: Checkout
29-
uses: actions/checkout@v4
29+
uses: actions/checkout@v6
3030
with:
3131
fetch-depth: 0
3232
token: ${{ secrets.RELEASE_TOKEN }}
3333

3434
- name: Use Node.js ${{ env.NODE_VERSION }}
35-
uses: actions/setup-node@v4
35+
uses: actions/setup-node@v6
3636
with:
3737
node-version: ${{ env.NODE_VERSION }}
3838

3939
- name: Use JDK ${{ env.JDK_VERSION }}
40-
uses: actions/setup-java@v4
40+
uses: actions/setup-java@v5
4141
with:
4242
distribution: temurin
4343
java-version: ${{ env.JDK_VERSION }}
@@ -62,12 +62,12 @@ jobs:
6262

6363
- name: Extract release notes
6464
id: extract-release-notes
65-
uses: ffurrer2/extract-release-notes@v1
65+
uses: ffurrer2/extract-release-notes@202313ec7461b6b9e401996714484690ab1ae105 # v3.0.0
6666
with:
6767
prerelease: true
6868

6969
- name: Update changelog
70-
uses: suyaser/keep-a-changelog-new-release@1.4.0
70+
uses: thomaseizinger/keep-a-changelog-new-release@f62c3c390716df5af712ba5d94f4f4a8efc1306d # v3.1.0
7171
with:
7272
version: ${{ steps.package-version.outputs.version }}
7373
tag: ${{ steps.package-version.outputs.version }}
@@ -85,13 +85,13 @@ jobs:
8585
working-directory: sonar-plugin
8686

8787
- name: Commit new version
88-
uses: EndBug/add-and-commit@v9
88+
uses: EndBug/add-and-commit@a94899bca583c204427a224a7af87c02f9b325d5 # v9.1.4
8989
with:
9090
message: Release version ${{ steps.package-version.outputs.version }}
9191
default_author: github_actions
9292

9393
- name: Create release
94-
uses: softprops/action-gh-release@v1
94+
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0
9595
with:
9696
name: Release ${{ steps.package-version.outputs.version }}
9797
tag_name: ${{ steps.package-version.outputs.version }}
@@ -105,13 +105,13 @@ jobs:
105105
needs: release
106106
steps:
107107
- name: Checkout
108-
uses: actions/checkout@v4
108+
uses: actions/checkout@v6
109109
with:
110110
ref: ${{ github.ref }}
111111
token: ${{ secrets.RELEASE_TOKEN }}
112112

113113
- name: Use JDK ${{ env.JDK_VERSION }}
114-
uses: actions/setup-java@v4
114+
uses: actions/setup-java@v5
115115
with:
116116
distribution: temurin
117117
java-version: ${{ env.JDK_VERSION }}
@@ -129,7 +129,7 @@ jobs:
129129
run: sed -i -E 's/plugin-(.*).jar/plugin-${{ steps.sonar-plugin-version.outputs.version }}.jar/' docker-compose.yml
130130

131131
- name: Commit new version
132-
uses: EndBug/add-and-commit@v9
132+
uses: EndBug/add-and-commit@a94899bca583c204427a224a7af87c02f9b325d5 # v9.1.4
133133
with:
134134
message: Prepare for next development iteration
135135
default_author: github_actions

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# Editors & OS
22
.DS_Store
33
.idea
4-
.vscode
4+
.project
5+
.settings/
6+
bin/
57
*.iml
68

79
# Maven

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"eslint.workingDirectories": ["./eslint-plugin", "./test-project"]
3+
}

0 commit comments

Comments
 (0)