Skip to content

Commit dd748a5

Browse files
committed
change command names
1 parent 0f806cb commit dd748a5

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

.github/testing/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"lint": "gts lint",
99
"fix": "gts fix",
1010
"affected": "bun run ./src/main.ts affected",
11-
"linter": "bun run ./src/main.ts linter",
12-
"tests": "bun run ./src/main.ts tests"
11+
"ci-lint": "bun run ./src/main.ts lint",
12+
"ci-test": "bun run ./src/main.ts test"
1313
},
1414
"dependencies": {
1515
"immutable": "^4.3.7",

.github/testing/src/config/python.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import * as path from 'path';
1616
import * as subprocess from '../subprocess';
17-
import {Config} from '../config';
17+
import { Config } from '../config';
1818

1919
export const python = (version = '3.11') =>
2020
new Config({
@@ -30,6 +30,7 @@ export const python = (version = '3.11') =>
3030
lint: args => {
3131
const noxfile = path.join(args.root, 'noxfile-template.py');
3232
subprocess.run('cp', [noxfile, 'noxfile.py']);
33+
subprocess.run('nox', ['-s', 'blacken']);
3334
subprocess.run('nox', ['-s', 'lint']);
3435
},
3536
testAll: args => {

.github/testing/src/main.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
// limitations under the License.
1414

1515
import * as git from './git';
16-
import {Config} from './config';
17-
import {python} from './config/python';
18-
import {Affected} from './affected';
16+
import { Config } from './config';
17+
import { python } from './config/python';
18+
import { Affected } from './affected';
1919

2020
function getConfig(lang: string): Config {
2121
switch (lang) {
@@ -44,13 +44,13 @@ function main(command: string) {
4444
console.log(JSON.stringify(affected));
4545
return;
4646
}
47-
case 'linter': {
47+
case 'lint': {
4848
const config = getConfig(process.argv[3]);
4949
const affected: Affected = JSON.parse(process.env[process.argv[4]] || '');
5050
config.lint(affected);
5151
return;
5252
}
53-
case 'tests': {
53+
case 'test': {
5454
const config = getConfig(process.argv[3]);
5555
const affected: Affected = JSON.parse(process.env[process.argv[4]] || '');
5656
config.test(affected);

.github/workflows/test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ jobs:
6161
- uses: actions/setup-python@v5
6262
with:
6363
python-version: '3.12'
64-
- run: pip install nox
64+
- run: pip install nox black
6565
- run: bun install
66-
- run: bun run linter python AFFECTED
66+
- run: bun run ci-lint python AFFECTED
6767
env:
6868
AFFECTED: ${{toJson(matrix.affected)}}
6969

@@ -93,6 +93,6 @@ jobs:
9393
workload_identity_provider: ${{env.WORKLOAD_IDENTITY_PROVIDER}}
9494
- run: pip install nox
9595
- run: bun install
96-
- run: bun run tests python${{matrix.python-version}} AFFECTED
96+
- run: bun run ci-test python${{matrix.python-version}} AFFECTED
9797
env:
9898
AFFECTED: ${{toJson(matrix.affected)}}

0 commit comments

Comments
 (0)