Skip to content

Commit c20a65a

Browse files
Changes for github workflows
1 parent ba21422 commit c20a65a

File tree

5 files changed

+17
-8
lines changed

5 files changed

+17
-8
lines changed

.github/workflows/onPushToMain.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v4
1313
- uses: actions/setup-node@v4
14+
with:
15+
node_version: 22
1416
- name: Check if version already exists
1517
id: version-check
1618
run: |
@@ -32,8 +34,12 @@ jobs:
3234
- name: Setup git
3335
if: ${{ steps.version-check.outputs.skipped == 'false' }}
3436
run: |
37+
apt-get update
38+
apt-get install -y git-core
39+
git --version
40+
echo "Path is ... $PATH"
3541
git config --global user.email "GitHub Actions Bot"
36-
git config --global user.name "<>""
42+
git config --global user.name "<>"
3743
- name: Generate oclif README
3844
if: ${{ steps.version-check.outputs.skipped == 'false' }}
3945
id: oclif-readme

.github/workflows/onRelease.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ jobs:
1111
- uses: actions/checkout@v4
1212
- uses: actions/setup-node@v4
1313
with:
14-
node-version: latest
14+
node-version: 22
15+
- run: npm update -g npm
1516
- run: npm install
1617
- run: npm run build
1718
- run: npm run prepack

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ jobs:
99
strategy:
1010
matrix:
1111
os: ['ubuntu-latest', 'windows-latest']
12-
node_version: [lts/-1, lts/*, latest]
12+
# node_version: [lts/-1, lts/*, latest]
13+
node_version: [22, 20]
1314
fail-fast: false
1415
runs-on: ${{ matrix.os }}
1516
steps:
@@ -18,6 +19,7 @@ jobs:
1819
with:
1920
node-version: ${{ matrix.node_version }}
2021
cache: npm
22+
- run: npm update -g npm
2123
- run: npm install
2224
- run: npm run build
2325
- run: npm run test

src/commands/platform/env/list.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import {Flags} from '@oclif/core'
1+
import {Command, Flags} from '@oclif/core'
22
import {table} from 'table'
33

4-
import {ScCommand} from '../../../sc-command.js'
4+
// import {ScCommand} from '../../../sc-command.js'
55
import {Environment, EnvironmentApiResponse} from '../../../types/environment.js'
66
import {ScConnection} from '../../../util/sc-connection.js'
77

8-
export default class PlatformEnvList extends ScCommand<typeof PlatformEnvList> {
8+
export default class PlatformEnvList extends Command {
99
static override args = {}
1010
static override description = `Get a list of all Environments.
1111

test/commands/platform/env/list.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function anEnv(name: string, isDefault: boolean, isProd: boolean) {
1010
return {
1111
createdBy: 'someuser',
1212
createdTime: '2024-09-05T19:54:42.766',
13-
description: `This is a description for the the environment ${name}`,
13+
description: `This is a description for the environment ${name}`,
1414
id: `id${name}`,
1515
isDefault,
1616
isProduction: isProd,
@@ -102,7 +102,7 @@ describe('platform:env:list', () => {
102102
}
103103

104104
// Run command
105-
const { stdout } = await runCommand('platform:env:list --pageSize=5', '--pageNumber=1')
105+
const { stdout } = await runCommand('platform:env:list --pageSize=5 --pageNumber=1')
106106
expect(stdout).to.contain(table(envArray, config))
107107
})
108108
})

0 commit comments

Comments
 (0)