Skip to content

Commit 485dfb4

Browse files
committed
Fixes
1 parent bddbdf5 commit 485dfb4

File tree

1 file changed

+109
-113
lines changed

1 file changed

+109
-113
lines changed

.github/workflows/end_to_end_tests.yaml

Lines changed: 109 additions & 113 deletions
Original file line numberDiff line numberDiff line change
@@ -4,120 +4,116 @@ on:
44
schedule:
55
# run daily at 2:00 AM UTC
66
- cron: '0 2 * * *'
7-
# allow manual triggering for testing purposes
8-
workflow_dispatch:
7+
# allow manual triggering for testing purposes
8+
workflow_dispatch:
99

1010
jobs:
11-
test-symfony-cli-installation:
12-
name: Test Symfony CLI Installation
13-
runs-on: ubuntu-latest
11+
test-symfony-cli-installation:
12+
name: Test Symfony CLI Installation
13+
runs-on: ubuntu-latest
1414

1515
steps:
16-
- name: Setup PHP
17-
uses: shivammathur/setup-php@v2
18-
with:
19-
php-version: '8.4'
20-
extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite
21-
coverage: none
22-
23-
- name: Install Symfony CLI
24-
run: |
25-
wget https://get.symfony.com/cli/installer -O - | bash
26-
echo "$HOME/.symfony*/bin" >> $GITHUB_PATH
27-
28-
- name: Create project using Symfony CLI
29-
run: |
30-
symfony new --demo symfony_cli_test
31-
32-
- name: Test application
33-
working-directory: ./symfony_cli_test
34-
run: |
35-
php bin/console --version
36-
php bin/console list
37-
php bin/console cache:clear --env=test
38-
39-
test-composer-create-project:
40-
name: Test Composer Create Project
41-
runs-on: ubuntu-latest
42-
43-
steps:
44-
- name: Setup PHP
45-
uses: shivammathur/setup-php@v2
46-
with:
47-
php-version: '8.4'
48-
extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite
49-
tools: composer
50-
coverage: none
51-
52-
- name: Create project using Composer
53-
run: |
54-
composer create-project symfony/symfony-demo composer_test
55-
56-
- name: Test application
57-
run: |
58-
working-directory: ./composer_test
59-
php bin/console --version
60-
php bin/console list
61-
php bin/console cache:clear --env=test
62-
63-
test-git-clone-installation:
64-
name: Test Git Clone Installation
65-
runs-on: ubuntu-latest
66-
67-
steps:
68-
- name: Setup PHP
69-
uses: shivammathur/setup-php@v2
70-
with:
71-
php-version: '8.4'
72-
extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite
73-
tools: composer
74-
coverage: none
75-
76-
- name: Clone repository and install dependencies
77-
run: |
78-
git clone https://github.com/symfony/demo.git git_clone_test
79-
cd git_clone_test
80-
composer install --no-dev --optimize-autoloader
81-
82-
- name: Test application
83-
working-directory: ./git_clone_test
84-
run: |
85-
php bin/console --version
86-
php bin/console list
87-
php bin/console cache:clear --env=test
88-
89-
notify-on-failure:
90-
name: Notify on Failure
91-
runs-on: ubuntu-latest
92-
needs: [test-symfony-cli-installation, test-composer-create-project, test-git-clone-installation]
93-
if: failure()
94-
permissions:
95-
issues: write
96-
97-
steps:
98-
- name: Create Issue on Failure
99-
uses: actions/github-script@v7
100-
with:
101-
script: |
102-
const title = `End to End Test Failed - ${new Date().toISOString().split('T')[0]}`;
103-
const body = `
104-
The daily end to end test workflow has failed. This means users may be experiencing issues installing the Symfony Demo application.
105-
106-
**Failed Jobs:**
107-
- Check the workflow run for details: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
108-
109-
**Installation Methods Tested:**
110-
- Symfony CLI installation
111-
- Composer create-project
112-
- Git clone + composer install
113-
114-
Please investigate and fix the installation issues as soon as possible.
115-
`;
116-
117-
github.rest.issues.create({
118-
owner: context.repo.owner,
119-
repo: context.repo.repo,
120-
title: title,
121-
body: body,
122-
labels: ['bug']
123-
});
16+
- name: Setup PHP
17+
uses: shivammathur/setup-php@v2
18+
with:
19+
php-version: '8.4'
20+
extensions: none, ctype, iconv, intl, mbstring, pdo_sqlite, xml
21+
coverage: none
22+
tools: symfony
23+
24+
- name: Create project using Symfony CLI
25+
run: |
26+
symfony new --demo symfony_cli_test
27+
28+
- name: Test application
29+
working-directory: ./symfony_cli_test
30+
run: |
31+
php bin/console about
32+
php bin/console list
33+
php bin/console cache:clear --env=test
34+
35+
test-composer-create-project:
36+
name: Test Composer Create Project
37+
runs-on: ubuntu-latest
38+
39+
steps:
40+
- name: Setup PHP
41+
uses: shivammathur/setup-php@v2
42+
with:
43+
php-version: '8.4'
44+
extensions: none, ctype, iconv, intl, mbstring, pdo_sqlite, xml
45+
tools: composer
46+
coverage: none
47+
48+
- name: Create project using Composer
49+
run: |
50+
composer create-project symfony/symfony-demo composer_test
51+
52+
- name: Test application
53+
run: |
54+
working-directory: ./composer_test
55+
php bin/console about
56+
php bin/console list
57+
php bin/console cache:clear --env=test
58+
59+
test-git-clone-installation:
60+
name: Test Git Clone Installation
61+
runs-on: ubuntu-latest
62+
63+
steps:
64+
- name: Setup PHP
65+
uses: shivammathur/setup-php@v2
66+
with:
67+
php-version: '8.4'
68+
extensions: none, ctype, iconv, intl, mbstring, pdo_sqlite, xml
69+
tools: composer
70+
coverage: none
71+
72+
- name: Clone repository and install dependencies
73+
run: |
74+
git clone https://github.com/symfony/demo.git git_clone_test
75+
cd git_clone_test
76+
composer install --no-dev --optimize-autoloader
77+
78+
- name: Test application
79+
working-directory: ./git_clone_test
80+
run: |
81+
php bin/console about
82+
php bin/console list
83+
php bin/console cache:clear --env=test
84+
85+
notify-on-failure:
86+
name: Notify on Failure
87+
runs-on: ubuntu-latest
88+
needs: [test-symfony-cli-installation, test-composer-create-project, test-git-clone-installation]
89+
if: failure()
90+
permissions:
91+
issues: write
92+
93+
steps:
94+
- name: Create Issue on Failure
95+
uses: actions/github-script@v7
96+
with:
97+
script: |
98+
const title = `End to End Test Failed - ${new Date().toISOString().split('T')[0]}`;
99+
const body = `
100+
The daily end to end test workflow has failed. This means users may be experiencing issues installing the Symfony Demo application.
101+
102+
**Failed Jobs:**
103+
- Check the workflow run for details: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
104+
105+
**Installation Methods Tested:**
106+
- Symfony CLI installation
107+
- Composer create-project
108+
- Git clone + composer install
109+
110+
Please investigate and fix the installation issues as soon as possible.
111+
`;
112+
113+
github.rest.issues.create({
114+
owner: context.repo.owner,
115+
repo: context.repo.repo,
116+
title: title,
117+
body: body,
118+
labels: ['bug']
119+
});

0 commit comments

Comments
 (0)