Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/comment-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
sonarr:
runs-on: ubuntu-latest
steps:
- uses: marocchino/sticky-pull-request-comment@v3
- uses: marocchino/sticky-pull-request-comment@0ea0beb66eb9baf113663a64ec522f60e49231c0 # v3.0.4
with:
message: |
Please check on sonarcloud <https://sonarcloud.io/project/pull_requests_list?id=io.github.mivek%3AmetarParser> that the PR does not add any issue.
2 changes: 1 addition & 1 deletion .github/workflows/lint-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ jobs:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v6.1.1
- uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Install semantic-release dependencies
run: npm install --ignore-scripts
run: npm ci --ignore-scripts
- name: Run semantic-release
run: npx semantic-release
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/validate-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:

- name: Install commitlint
run: |
npm install conventional-changelog-conventionalcommits@7.0.2
npm install commitlint@19.7.1
npm install --ignore-scripts conventional-changelog-conventionalcommits@7.0.2
npm install --ignore-scripts commitlint@19.7.1

- name: Validate PR commits with commitlint
run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,21 @@
class MessagesTest {

@Test
@SuppressWarnings("java:S1874")
@SuppressWarnings("java:S5738")
void testSetLocale() {
Messages.getInstance().setLocale(Locale.FRENCH);
Messages.getInstance().setLocale(Locale.FRENCH); // NOSONAR java:S5738
assertEquals("peu", Messages.getInstance().getString("CloudQuantity.FEW"));
Messages.getInstance().setLocale(Locale.ENGLISH);
Messages.getInstance().setLocale(Locale.ENGLISH); // NOSONAR java:S5738
assertEquals("few", Messages.getInstance().getString("CloudQuantity.FEW"));
Messages.getInstance().clearLocale();
Messages.getInstance().clearLocale(); // NOSONAR java:S5738
}

@Test
@SuppressWarnings("java:S1874")
@SuppressWarnings("java:S5738")
void testClearLocale() {
Messages.getInstance().setLocale(Locale.FRENCH);
Messages.getInstance().setLocale(Locale.FRENCH); // NOSONAR java:S5738
assertEquals("peu", Messages.getInstance().getString("CloudQuantity.FEW"));
Messages.getInstance().clearLocale();
Messages.getInstance().clearLocale(); // NOSONAR java:S5738
assertDoesNotThrow(() -> Messages.getInstance().getString("CloudQuantity.FEW"));
}

Expand Down
Loading