Skip to content

Commit

Permalink
Upgrades ktlint to version 0.49.1 (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
musichin authored May 27, 2023
1 parent 0ca2965 commit 6f15ebc
Show file tree
Hide file tree
Showing 8 changed files with 209 additions and 214 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ steps:
- uses: actions/checkout@v2
- uses: musichin/ktlint-check@v2
with:
ktlint-version: '0.49.0'
ktlint-version: '0.49.1'
```
The ktlint `ktlint-version` input is optional, however, it is strongly recommended to always specify it.

Expand All @@ -22,7 +22,7 @@ steps:
- uses: musichin/ktlint-check@v2
continue-on-error: true
with:
ktlint-version: '0.49.0'
ktlint-version: '0.49.1'
level: 'warning'
# ktlint
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ branding:
inputs:
ktlint-version:
required: true
default: '0.49.0'
description: 'Version of ktlint, e.g. "0.49.0"'
default: '0.49.1'
description: 'Version of ktlint, e.g. "0.49.1"'
level:
required: true
default: 'error'
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

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

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

393 changes: 194 additions & 199 deletions package-lock.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@
"@actions/core": "^1.10.0",
"@actions/exec": "^1.1.1",
"@actions/tool-cache": "^2.0.1",
"semver": "^7.5.0"
"semver": "^7.5.1"
},
"devDependencies": {
"@types/jest": "^29.5.1",
"@typescript-eslint/eslint-plugin": "5.59.0",
"@typescript-eslint/parser": "5.59.0",
"@typescript-eslint/eslint-plugin": "5.59.7",
"@typescript-eslint/parser": "5.59.7",
"@vercel/ncc": "0.36.1",
"eslint": "8.38.0",
"eslint": "8.41.0",
"eslint-config-google": "0.14.0",
"jest": "^29.5.0",
"prettier": "2.8.7",
"prettier": "2.8.8",
"ts-jest": "^29.1.0",
"typescript": "^5.0.4"
}
Expand Down
6 changes: 3 additions & 3 deletions test/input.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {parseInput} from '../src/input';
function setEnvVars(input?: {[key: string]: string}) {
const variables: {[key: string]: string} = {
level: 'error',
'ktlint-version': '0.49.0',
'ktlint-version': '0.49.1',
android: '',
limit: '',
patterns: '',
Expand All @@ -24,9 +24,9 @@ describe('parseInput', () => {
});

test('valid', () => {
setEnvVars({'ktlint-version': '0.49.0'});
setEnvVars({'ktlint-version': '0.49.1'});
const {ktlintVersion} = parseInput();
expect(ktlintVersion).toEqual('0.49.0');
expect(ktlintVersion).toEqual('0.49.1');
});
});

Expand Down
2 changes: 1 addition & 1 deletion test/setup-reporter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe('#setup-reporter', () => {
}, 60_000);

test('ktlint verssion >= 0.49.0', async () => {
const tool = await install('0.49.0');
const tool = await install('0.49.1');
expect(tool).toBeTruthy();
expect(tool.name).toStrictEqual('ktlint-github-reporter');
expect(tool.version).toStrictEqual('3.0.1');
Expand Down

0 comments on commit 6f15ebc

Please sign in to comment.