-
-
Notifications
You must be signed in to change notification settings - Fork 439
65 lines (52 loc) · 2.39 KB
/
e2e_command_with_option.yaml
File metadata and controls
65 lines (52 loc) · 2.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: End to End tests command with option
on:
pull_request:
branches:
- main
push:
branches:
- main
env:
# see https://github.com/composer/composer/issues/9368#issuecomment-718112361
COMPOSER_ROOT_VERSION: "dev-main"
jobs:
code_analysis:
strategy:
fail-fast: false
name: End to End tests command with option
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
# see https://github.com/shivammathur/setup-php
-
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
coverage: none
- uses: "ramsey/composer-install@v4"
# test various commands with options
- working-directory: e2e/command-with-option
run: |
# other command
../../bin/rector help
php ../../bin/rector help
# with explicit "process" command
../../bin/rector process --output-format json --dry-run
../../bin/rector process --output-format=json --dry-run
php ../../bin/rector process --output-format json --dry-run
php ../../bin/rector process --output-format=json --dry-run
../../bin/rector process some_file.php --output-format json
../../bin/rector process some_file.php --output-format=json
php ../../bin/rector process some_file.php --output-format json
php ../../bin/rector process some_file.php --output-format=json
php ../../bin/rector p some_file.php --output-format=json
# with implicit process command
../../bin/rector --output-format json --dry-run
../../bin/rector --output-format=json --dry-run
php ../../bin/rector --output-format json --dry-run
php ../../bin/rector --output-format=json --dry-run
../../bin/rector some_file.php --output-format json
../../bin/rector some_file.php --output-format=json
php ../../bin/rector some_file.php --output-format json
php ../../bin/rector some_file.php --output-format=json