Skip to content

Commit bf768b3

Browse files
Bump the actions group across 1 directory with 7 updates (#346)
* Bump the actions group across 1 directory with 7 updates Bumps the actions group with 7 updates in the / directory: | Package | From | To | | --- | --- | --- | | [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) | `1.10.1` | `1.11.1` | | [@octokit/core](https://github.com/octokit/core.js) | `3.6.0` | `6.1.2` | | [@octokit/plugin-retry](https://github.com/octokit/plugin-retry.js) | `3.0.9` | `7.1.2` | | [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) | `29.5.13` | `29.5.14` | | [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `22.7.4` | `22.8.7` | | [prettier](https://github.com/prettier/prettier) | `2.8.8` | `3.3.3` | | [typescript](https://github.com/microsoft/TypeScript) | `5.6.2` | `5.6.3` | Updates `@actions/core` from 1.10.1 to 1.11.1 - [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md) - [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core) Updates `@octokit/core` from 3.6.0 to 6.1.2 - [Release notes](https://github.com/octokit/core.js/releases) - [Commits](octokit/core.js@v3.6.0...v6.1.2) Updates `@octokit/plugin-retry` from 3.0.9 to 7.1.2 - [Release notes](https://github.com/octokit/plugin-retry.js/releases) - [Commits](octokit/plugin-retry.js@v3.0.9...v7.1.2) Updates `@types/jest` from 29.5.13 to 29.5.14 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest) Updates `@types/node` from 22.7.4 to 22.8.7 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Updates `prettier` from 2.8.8 to 3.3.3 - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](prettier/prettier@2.8.8...3.3.3) Updates `typescript` from 5.6.2 to 5.6.3 - [Release notes](https://github.com/microsoft/TypeScript/releases) - [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml) - [Commits](microsoft/TypeScript@v5.6.2...v5.6.3) --- updated-dependencies: - dependency-name: "@actions/core" dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions - dependency-name: "@octokit/core" dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: "@octokit/plugin-retry" dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: "@types/jest" dependency-type: direct:development update-type: version-update:semver-patch dependency-group: actions - dependency-name: "@types/node" dependency-type: direct:development update-type: version-update:semver-minor dependency-group: actions - dependency-name: prettier dependency-type: direct:development update-type: version-update:semver-major dependency-group: actions - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-patch dependency-group: actions ... Signed-off-by: dependabot[bot] <[email protected]> * fixed octokit imports * fix fs imports * prettier * babel config * format * format action update --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: David Gamero <[email protected]>
1 parent d3b3950 commit bf768b3

13 files changed

+5121
-3232
lines changed

.github/workflows/prettify-code.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ jobs:
1111
steps:
1212
- name: Checkout Repository
1313
uses: actions/checkout@v4
14+
- name: install deps
15+
run: npm install
1416

1517
- name: Enforce Prettier
16-
uses: actionsx/prettier@v3
17-
with:
18-
args: --check .
18+
run: npm run format-check

babel.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
presets: [
3+
['@babel/preset-env', {targets: {node: 'current'}}],
4+
'@babel/preset-typescript'
5+
]
6+
}

jest.config.js

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
module.exports = {
2-
clearMocks: true,
32
moduleFileExtensions: ['js', 'ts'],
43
testEnvironment: 'node',
54
testMatch: ['**/*.test.ts'],
65
transform: {
7-
'^.+\\.ts$': 'ts-jest'
6+
'\\.[jt]sx?$': 'babel-jest'
87
},
8+
transformIgnorePatterns: [
9+
'node_modules/(?!' +
10+
[
11+
'@octokit',
12+
'universal-user-agent',
13+
'before-after-hook',
14+
'minimist'
15+
].join('|') +
16+
')'
17+
],
918
verbose: true,
1019
testTimeout: 9000
1120
}

package-lock.json

+5,078-3,204
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+10-7
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,27 @@
1212
"format-check": "prettier --check ."
1313
},
1414
"dependencies": {
15-
"@actions/core": "^1.10.1",
15+
"@actions/core": "^1.11.1",
1616
"@actions/exec": "^1.0.0",
1717
"@actions/io": "^1.1.3",
1818
"@actions/tool-cache": "2.0.1",
19-
"@octokit/core": "^3.5.1",
20-
"@octokit/plugin-retry": "^3.0.9",
19+
"@babel/preset-env": "^7.26.0",
20+
"@babel/preset-typescript": "^7.26.0",
21+
"@octokit/core": "^6.1.2",
22+
"@octokit/plugin-retry": "^7.1.2",
2123
"@types/minipass": "^3.3.5",
2224
"js-yaml": "4.1.0",
2325
"minimist": "^1.2.8"
2426
},
2527
"devDependencies": {
26-
"@types/jest": "^29.5.13",
28+
"@types/jest": "^29.5.14",
2729
"@types/js-yaml": "^4.0.9",
28-
"@types/node": "^22.7.4",
30+
"@types/minimist": "^1.2.5",
31+
"@types/node": "^22.8.7",
2932
"@vercel/ncc": "^0.38.2",
3033
"jest": "^29.7.0",
31-
"prettier": "^2.8.8",
34+
"prettier": "^3.3.3",
3235
"ts-jest": "^29.2.5",
33-
"typescript": "5.6.2"
36+
"typescript": "5.6.3"
3437
}
3538
}

src/run.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@ export async function run() {
2626
.map((manifest) => manifest.trim()) // remove surrounding whitespace
2727
.filter((manifest) => manifest.length > 0) // remove any blanks
2828

29-
const fullManifestFilePaths = await getFilesFromDirectoriesAndURLs(
30-
manifestFilePaths
31-
)
29+
const fullManifestFilePaths =
30+
await getFilesFromDirectoriesAndURLs(manifestFilePaths)
3231
const kubectlPath = await getKubectlPath()
3332
const namespace = core.getInput('namespace') || 'default'
3433
const isPrivateCluster =

src/strategyHelpers/blueGreen/smiBlueGreenHelper.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,8 @@ export async function createTrafficSplitObject(
7777
): Promise<TrafficSplitObject> {
7878
// cache traffic split api version
7979
if (!trafficSplitAPIVersion)
80-
trafficSplitAPIVersion = await kubectlUtils.getTrafficSplitAPIVersion(
81-
kubectl
82-
)
80+
trafficSplitAPIVersion =
81+
await kubectlUtils.getTrafficSplitAPIVersion(kubectl)
8382

8483
// retrieve annotations for TS object
8584
const annotations = inputAnnotations

src/strategyHelpers/canary/smiCanaryHelper.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -347,9 +347,8 @@ async function getTrafficSplitObject(
347347
): Promise<string> {
348348
// cached version
349349
if (!trafficSplitAPIVersion) {
350-
trafficSplitAPIVersion = await kubectlUtils.getTrafficSplitAPIVersion(
351-
kubectl
352-
)
350+
trafficSplitAPIVersion =
351+
await kubectlUtils.getTrafficSplitAPIVersion(kubectl)
353352
}
354353

355354
return JSON.stringify({

src/types/privatekubectl.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as fileUtils from '../utilities/fileUtils'
2-
import * as fs from 'fs'
2+
import fs from 'node:fs'
33
import {
44
PrivateKubectl,
55
extractFileNames,

src/types/privatekubectl.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import {Kubectl} from './kubectl'
2-
import * as minimist from 'minimist'
2+
import minimist from 'minimist'
33
import {ExecOptions, ExecOutput, getExecOutput} from '@actions/exec'
44
import * as core from '@actions/core'
5-
import * as os from 'os'
6-
import * as fs from 'fs'
5+
import fs from 'node:fs'
76
import * as path from 'path'
87
import {getTempDirectory} from '../utilities/fileUtils'
98

src/utilities/fileUtils.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as fileUtils from './fileUtils'
22

33
import * as yaml from 'js-yaml'
4-
import * as fs from 'fs'
4+
import fs from 'node:fs'
55
import * as path from 'path'
66
import {K8sObject} from '../types/k8sObject'
77

src/utilities/fileUtils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as fs from 'fs'
1+
import fs from 'node:fs'
22
import * as https from 'https'
33
import * as path from 'path'
44
import * as core from '@actions/core'

tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"compilerOptions": {
33
"target": "ES6",
4-
"module": "commonjs"
4+
"module": "commonjs",
5+
"esModuleInterop": true
56
},
67
"exclude": ["node_modules", "test", "src/**/*.test.ts"]
78
}

0 commit comments

Comments
 (0)