Update all direct dependencies (#404)

* Update all direct dependencies

* use node v16
* upgrade typescript to v4.5.5
* upgrade actions/github to v5
* use vercel/ncc v0.33.3

* Add compatibility note for v3

* increase timeout for the testing workflow
This commit is contained in:
Sergey Vilgelm 2022-02-24 11:13:47 -08:00 committed by GitHub
parent 423fbafafc
commit c675eb70db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 66939 additions and 68740 deletions

View File

@ -38,7 +38,7 @@ jobs:
- uses: ./
with:
version: ${{ matrix.version }}
args: --issues-exit-code=0 ./sample/...
args: --timeout=3m --issues-exit-code=0 ./sample/...
only-new-issues: true
test-go-mod-version:
@ -57,4 +57,4 @@ jobs:
- uses: ./
with:
working-directory: sample-go-mod
args: --issues-exit-code=0 ./...
args: --timeout=3m --issues-exit-code=0 ./...

1
.nvmrc Normal file
View File

@ -0,0 +1 @@
v16

View File

@ -9,6 +9,8 @@ The action runs [golangci-lint](https://github.com/golangci/golangci-lint) and r
## Compatibility
* `v3.0.0+` requires explicit setup-go installation step prior to using this action: `uses: actions/setup-go@v2`.
The `skip-go-installation` option has been removed.
* `v2.0.0+` works with `golangci-lint` version >= `v1.28.3`
* `v1.2.2` is deprecated due to we forgot to change the minimum version of `golangci-lint` to `v1.28.3` ([issue](https://github.com/golangci/golangci-lint-action/issues/39))
* `v1.2.1` works with `golangci-lint` version >= `v1.14.0` ([issue](https://github.com/golangci/golangci-lint-action/issues/39))

View File

@ -29,7 +29,7 @@ inputs:
default: false
required: true
runs:
using: "node12"
using: "node16"
main: "dist/run/index.js"
post: "dist/post_run/index.js"
branding:

66926
dist/post_run/index.js vendored

File diff suppressed because one or more lines are too long

66926
dist/run/index.js vendored

File diff suppressed because one or more lines are too long

1795
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -25,26 +25,24 @@
"license": "MIT",
"dependencies": {
"@actions/cache": "^1.0.9",
"@actions/core": "^1.5.0",
"@actions/core": "^1.6.0",
"@actions/exec": "^1.1.0",
"@actions/github": "^4.0.0",
"@actions/github": "^5.0.0",
"@actions/tool-cache": "^1.7.1",
"@types/semver": "^7.3.9",
"@types/tmp": "^0.2.3",
"tmp": "^0.2.1"
},
"devDependencies": {
"@types/node": "^17.0.19",
"@types/uuid": "^8.3.4",
"@typescript-eslint/eslint-plugin": "^4.33.0",
"@typescript-eslint/parser": "^4.33.0",
"@zeit/ncc": "^0.22.3",
"eslint": "^7.32.0",
"@typescript-eslint/eslint-plugin": "^5.12.1",
"@typescript-eslint/parser": "^5.12.1",
"@vercel/ncc": "^0.33.3",
"eslint": "^8.9.0",
"eslint-config-prettier": "^8.4.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"prettier": "^2.5.1",
"typescript": "^4.3.5"
"typescript": "^4.5.5"
}
}

View File

@ -41,7 +41,7 @@ async function fetchPatch(): Promise<string> {
const octokit = github.getOctokit(core.getInput(`github-token`, { required: true }))
let patch: string
try {
const patchResp = await octokit.pulls.get({
const patchResp = await octokit.rest.pulls.get({
owner: ctx.repo.owner,
repo: ctx.repo.repo,
[`pull_number`]: pull.number,

View File

@ -8,7 +8,8 @@
"noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
"tsBuildInfoFile": ".tsbuildinfo",
"incremental": true
"incremental": true,
"useUnknownInCatchVariables": false
},
"exclude": ["node_modules", "**/*.test.ts"]
}
}