|
1 |
| -name: Transpile to 7.x |
2 |
| -on: |
3 |
| - push: |
4 |
| - branches: |
5 |
| - - master |
6 |
| - workflow_dispatch: |
7 |
| - |
8 |
| -jobs: |
9 |
| - transpile_73: |
10 |
| - name: Transpile to PHP 7.3 |
11 |
| - runs-on: ubuntu-latest |
12 |
| - steps: |
13 |
| - - name: Setup PHP |
14 |
| - uses: shivammathur/setup-php@v2 |
15 |
| - with: |
16 |
| - php-version: 8.0 |
17 |
| - - name: Checkout Code |
18 |
| - uses: actions/checkout@v2 |
19 |
| - with: |
20 |
| - ref: master |
21 |
| - - name: Install Dependencies |
22 |
| - run: composer install |
23 |
| - - name: Transpile to 7.3 |
24 |
| - run: php vendor/bin/rector process --no-diffs --no-progress-bar --config rector.73.php src |
25 |
| - - name: Update composer.json version |
26 |
| - run: 'sed -i -e ''s/"php": "\^8.0"/"php": "\^7.3"/'' composer.json' |
27 |
| - - name: Update README |
28 |
| - run: sed -i '1s/^/# This branch is auto generated\n/' README.md |
29 |
| - - name: Commit PHP 7.3 version |
30 |
| - uses: actions-x/commit@v2 |
31 |
| - with: |
32 |
| - files: . |
33 |
| - branch: php-7.3 |
34 |
| - name: GitHub Actions |
35 |
| - email: noreply@github.com |
36 |
| - message: Transpiled to PHP 7.3 |
37 |
| - force: true |
38 |
| - transpile_74: |
39 |
| - name: Transpile to PHP 7.4 |
40 |
| - runs-on: ubuntu-latest |
41 |
| - steps: |
42 |
| - - name: Setup PHP |
43 |
| - uses: shivammathur/setup-php@v2 |
44 |
| - with: |
45 |
| - php-version: 8.0 |
46 |
| - - name: Checkout Code |
47 |
| - uses: actions/checkout@v2 |
48 |
| - with: |
49 |
| - ref: master |
50 |
| - - name: Install Dependencies |
51 |
| - run: composer install |
52 |
| - - name: Transpile to 7.4 |
53 |
| - run: php vendor/bin/rector process --no-diffs --no-progress-bar --config rector.74.php src |
54 |
| - - name: Update composer.json version |
55 |
| - run: 'sed -i -e ''s/"php": "\^8.0"/"php": "\^7.4"/'' composer.json' |
56 |
| - - name: Update README |
57 |
| - run: sed -i '1s/^/# This branch is auto generated\n/' README.md |
58 |
| - - name: Commit PHP 7.4 version |
59 |
| - uses: actions-x/commit@v2 |
60 |
| - with: |
61 |
| - files: . |
62 |
| - branch: php-7.4 |
63 |
| - name: GitHub Actions |
64 |
| - email: noreply@github.com |
65 |
| - message: Transpiled to PHP 7.4 |
66 |
| - force: true |
67 |
| - trigger_7x_tests: |
68 |
| - name: Trigger 7.x tests |
69 |
| - runs-on: ubuntu-latest |
70 |
| - needs: |
71 |
| - - transpile_73 |
72 |
| - - transpile_74 |
73 |
| - steps: |
74 |
| - - name: Trigger 7.x tests |
75 |
| - uses: peter-evans/repository-dispatch@v1 |
76 |
| - with: |
77 |
| - token: ${{ secrets.REPO_TOKEN }} |
78 |
| - event-type: trigger-7x-tests |
79 |
| - client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}' |
| 1 | +name: Transpile to 7.x |
| 2 | +on: |
| 3 | + push: |
| 4 | + branches: |
| 5 | + - main |
| 6 | + workflow_dispatch: |
| 7 | + |
| 8 | +jobs: |
| 9 | + transpile_73: |
| 10 | + name: Transpile to PHP 7.3 |
| 11 | + runs-on: ubuntu-latest |
| 12 | + steps: |
| 13 | + - name: Setup PHP |
| 14 | + uses: shivammathur/setup-php@v2 |
| 15 | + with: |
| 16 | + php-version: 8.0 |
| 17 | + - name: Checkout Code |
| 18 | + uses: actions/checkout@v2 |
| 19 | + with: |
| 20 | + ref: main |
| 21 | + - name: Install Dependencies |
| 22 | + run: composer install |
| 23 | + - name: Transpile to 7.3 |
| 24 | + run: php vendor/bin/rector process --no-diffs --no-progress-bar --config rector.73.php src |
| 25 | + - name: Update composer.json version |
| 26 | + run: 'sed -i -e ''s/"php": "\^8.0"/"php": "\^7.3"/'' composer.json' |
| 27 | + - name: Update README |
| 28 | + run: sed -i '1s/^/# This branch is auto generated\n/' README.md |
| 29 | + - name: Commit PHP 7.3 version |
| 30 | + uses: actions-x/commit@v2 |
| 31 | + with: |
| 32 | + files: . |
| 33 | + branch: php-7.3 |
| 34 | + name: GitHub Actions |
| 35 | + email: noreply@github.com |
| 36 | + message: Transpiled to PHP 7.3 |
| 37 | + force: true |
| 38 | + transpile_74: |
| 39 | + name: Transpile to PHP 7.4 |
| 40 | + runs-on: ubuntu-latest |
| 41 | + steps: |
| 42 | + - name: Setup PHP |
| 43 | + uses: shivammathur/setup-php@v2 |
| 44 | + with: |
| 45 | + php-version: 8.0 |
| 46 | + - name: Checkout Code |
| 47 | + uses: actions/checkout@v2 |
| 48 | + with: |
| 49 | + ref: main |
| 50 | + - name: Install Dependencies |
| 51 | + run: composer install |
| 52 | + - name: Transpile to 7.4 |
| 53 | + run: php vendor/bin/rector process --no-diffs --no-progress-bar --config rector.74.php src |
| 54 | + - name: Update composer.json version |
| 55 | + run: 'sed -i -e ''s/"php": "\^8.0"/"php": "\^7.4"/'' composer.json' |
| 56 | + - name: Update README |
| 57 | + run: sed -i '1s/^/# This branch is auto generated\n/' README.md |
| 58 | + - name: Commit PHP 7.4 version |
| 59 | + uses: actions-x/commit@v2 |
| 60 | + with: |
| 61 | + files: . |
| 62 | + branch: php-7.4 |
| 63 | + name: GitHub Actions |
| 64 | + email: noreply@github.com |
| 65 | + message: Transpiled to PHP 7.4 |
| 66 | + force: true |
| 67 | + trigger_7x_tests: |
| 68 | + name: Trigger 7.x tests |
| 69 | + runs-on: ubuntu-latest |
| 70 | + needs: |
| 71 | + - transpile_73 |
| 72 | + - transpile_74 |
| 73 | + steps: |
| 74 | + - name: Trigger 7.x tests |
| 75 | + uses: peter-evans/repository-dispatch@v1 |
| 76 | + with: |
| 77 | + token: ${{ secrets.REPO_TOKEN }} |
| 78 | + event-type: trigger-7x-tests |
| 79 | + client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}' |
0 commit comments