Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7230b42

Browse files
committedJan 3, 2022
chore: update workflows after renaming master -> main
1 parent 56d907e commit 7230b42

File tree

2 files changed

+163
-163
lines changed

2 files changed

+163
-163
lines changed
 

‎.github/workflows/tests.yaml

+84-84
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,84 @@
1-
name: Tests (8.x)
2-
on:
3-
push:
4-
branches:
5-
- master
6-
pull_request:
7-
workflow_dispatch:
8-
9-
jobs:
10-
code_style:
11-
name: Test code style
12-
runs-on: ubuntu-latest
13-
strategy:
14-
matrix:
15-
version: ['8.0']
16-
steps:
17-
- name: Setup PHP
18-
uses: shivammathur/setup-php@v2
19-
with:
20-
php-version: ${{ matrix.version }}
21-
- name: Checkout Code
22-
uses: actions/checkout@v2
23-
- name: Install Dependencies
24-
run: composer install
25-
- name: Test code style
26-
run: composer fixer -- --dry-run
27-
static_analysis:
28-
name: Static analysis
29-
runs-on: ubuntu-latest
30-
strategy:
31-
matrix:
32-
version: ['8.0']
33-
steps:
34-
- name: Setup PHP
35-
uses: shivammathur/setup-php@v2
36-
with:
37-
php-version: ${{ matrix.version }}
38-
- name: Checkout Code
39-
uses: actions/checkout@v2
40-
- name: Install Dependencies
41-
run: composer install
42-
- name: Run static analysis
43-
run: composer phpstan
44-
# tests:
45-
# name: Tests
46-
# runs-on: ubuntu-latest
47-
# strategy:
48-
# matrix:
49-
# version: ['8.0']
50-
# steps:
51-
# - name: Setup PHP
52-
# uses: shivammathur/setup-php@v2
53-
# with:
54-
# php-version: ${{ matrix.version }}
55-
# - name: Checkout Code
56-
# uses: actions/checkout@v2
57-
# with:
58-
# submodules: true
59-
# - name: Install Dependencies
60-
# run: composer install
61-
# - name: Run tests
62-
# run: composer phpunit
63-
# coverage:
64-
# name: Report Coverage
65-
# runs-on: ubuntu-latest
66-
# steps:
67-
# - name: Setup PHP
68-
# uses: shivammathur/setup-php@v2
69-
# with:
70-
# php-version: 8.0
71-
# - name: Checkout Code
72-
# uses: actions/checkout@v2
73-
# with:
74-
# submodules: true
75-
# - name: Install Dependencies
76-
# run: composer install
77-
# - name: Generate Coverage
78-
# run: composer phpunit -- --coverage-clover ./build/logs/clover.xml
79-
# - name: Download Coverage Client
80-
# run: wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.4.3/php-coveralls.phar
81-
# - name: Publish Coverage (Coveralls)
82-
# run: php php-coveralls.phar -v
83-
# env:
84-
# COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1+
name: Tests (8.x)
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
workflow_dispatch:
8+
9+
jobs:
10+
code_style:
11+
name: Test code style
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
version: ['8.0']
16+
steps:
17+
- name: Setup PHP
18+
uses: shivammathur/setup-php@v2
19+
with:
20+
php-version: ${{ matrix.version }}
21+
- name: Checkout Code
22+
uses: actions/checkout@v2
23+
- name: Install Dependencies
24+
run: composer install
25+
- name: Test code style
26+
run: composer fixer -- --dry-run
27+
static_analysis:
28+
name: Static analysis
29+
runs-on: ubuntu-latest
30+
strategy:
31+
matrix:
32+
version: ['8.0']
33+
steps:
34+
- name: Setup PHP
35+
uses: shivammathur/setup-php@v2
36+
with:
37+
php-version: ${{ matrix.version }}
38+
- name: Checkout Code
39+
uses: actions/checkout@v2
40+
- name: Install Dependencies
41+
run: composer install
42+
- name: Run static analysis
43+
run: composer phpstan
44+
# tests:
45+
# name: Tests
46+
# runs-on: ubuntu-latest
47+
# strategy:
48+
# matrix:
49+
# version: ['8.0']
50+
# steps:
51+
# - name: Setup PHP
52+
# uses: shivammathur/setup-php@v2
53+
# with:
54+
# php-version: ${{ matrix.version }}
55+
# - name: Checkout Code
56+
# uses: actions/checkout@v2
57+
# with:
58+
# submodules: true
59+
# - name: Install Dependencies
60+
# run: composer install
61+
# - name: Run tests
62+
# run: composer phpunit
63+
# coverage:
64+
# name: Report Coverage
65+
# runs-on: ubuntu-latest
66+
# steps:
67+
# - name: Setup PHP
68+
# uses: shivammathur/setup-php@v2
69+
# with:
70+
# php-version: 8.0
71+
# - name: Checkout Code
72+
# uses: actions/checkout@v2
73+
# with:
74+
# submodules: true
75+
# - name: Install Dependencies
76+
# run: composer install
77+
# - name: Generate Coverage
78+
# run: composer phpunit -- --coverage-clover ./build/logs/clover.xml
79+
# - name: Download Coverage Client
80+
# run: wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.4.3/php-coveralls.phar
81+
# - name: Publish Coverage (Coveralls)
82+
# run: php php-coveralls.phar -v
83+
# env:
84+
# COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}

‎.github/workflows/transpile.yaml

+79-79
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,79 @@
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

Comments
 (0)
Failed to load comments.