Skip to content

Commit 74f4297

Browse files
Fix composer installation in actions
1 parent b367425 commit 74f4297

File tree

6 files changed

+31
-31
lines changed

6 files changed

+31
-31
lines changed

.github/workflows/a11y_tests.yaml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020

2121
steps:
22-
- uses: actions/checkout@v2
22+
- uses: actions/checkout@v4
2323

2424
# see https://github.com/actions/starter-workflows/blob/main/ci/node.js.yml
2525
-
@@ -34,13 +34,14 @@ jobs:
3434
php-version: ${{ matrix.php-version }}
3535
extensions: json, mbstring, pdo, curl, pdo_sqlite
3636
coverage: none
37-
- name: Install dependencies
38-
run: |
39-
sudo composer self-update -q
40-
sudo COMPOSER_MEMORY_LIMIT=-1 COMPOSER_PROCESS_TIMEOUT=60 composer update --prefer-dist --no-progress
41-
./bin/console bolt:info --ansi
42-
npm set progress=false
43-
npm ci
37+
- name: Install composer dependencies
38+
uses: php-actions/composer@v6
39+
with:
40+
php_version: 7.2
41+
- name: Show Bolt info
42+
run: ./bin/console bolt:info --ansi
43+
- name: Install NPM dependencies
44+
run: npm ci
4445
- name: Prepare environment
4546
run: |
4647
# build assets

.github/workflows/api_tests.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,17 @@ jobs:
1111
name: curl tests
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1515
- uses: shivammathur/setup-php@v2
1616
with:
1717
# test the lowest version, to make sure checks pass on it
1818
php-version: ${{ matrix.php-version }}
1919
extensions: json, mbstring, pdo, curl, pdo_sqlite
2020
coverage: none
21-
- name: Initialise
22-
run: |
23-
sudo composer self-update -q
24-
- name: Install dependencies
25-
run: |
26-
sudo COMPOSER_MEMORY_LIMIT=-1 COMPOSER_PROCESS_TIMEOUT=60 composer update --prefer-dist --no-progress
21+
- name: Install composer dependencies
22+
uses: php-actions/composer@v6
23+
with:
24+
php_version: ${{ matrix.php-version }}
2725
- name: Initialise the database
2826
run: |
2927
sudo chmod -R 777 config/ public/files/ public/theme/ public/thumbs/ var/

.github/workflows/assets_code_analysis.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: ubuntu-latest
2525

2626
steps:
27-
- uses: actions/checkout@v2
27+
- uses: actions/checkout@v4
2828

2929
# see https://github.com/actions/starter-workflows/blob/main/ci/node.js.yml
3030
-

.github/workflows/code_analysis.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
runs-on: ubuntu-latest
4747

4848
steps:
49-
- uses: actions/checkout@v2
49+
- uses: actions/checkout@v4
5050
# see https://github.com/shivammathur/setup-php
5151
- uses: shivammathur/setup-php@v2
5252
with:

.github/workflows/cypress_tests.yaml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
matrix:
1717
containers: [1, 2, 3] # number of parallel containers
1818
steps:
19-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v4
2020
- uses: shivammathur/setup-php@v2
2121
with:
2222
# test the lowest version, to make sure checks pass on it
@@ -28,13 +28,16 @@ jobs:
2828
node-version: 20
2929
# See https://github.community/t/sudo-apt-install-fails-with-failed-to-fetch-http-security-ubuntu-com-404-not-found-ip/17075
3030
- run: sudo apt update
31-
- name: Install dependencies
31+
- name: Install composer dependencies
32+
uses: php-actions/composer@v6
33+
- name: Show Bolt info
34+
run: ./bin/console bolt:info --ansi
35+
with:
36+
php_version: 7.2
37+
- name: Install NPM dependencies
38+
run: npm ci
39+
- name: Install other dependencies
3240
run: |
33-
sudo composer self-update -q
34-
sudo COMPOSER_MEMORY_LIMIT=-1 COMPOSER_PROCESS_TIMEOUT=60 composer update --prefer-dist --no-progress
35-
./bin/console bolt:info --ansi
36-
npm set progress=false
37-
npm ci
3841
mkdir -p ./var/log/e2e-reports/report/features/
3942
touch ./var/log/e2e-reports/report/features/.gitkeep
4043
# Install latest stable Chrome for e2e tests

.github/workflows/unit_tests.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,16 @@ jobs:
1212
name: PHPUnit
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v4
1616
- uses: shivammathur/setup-php@v2
1717
with:
1818
# test the lowest version, to make sure checks pass on it
1919
php-version: ${{ matrix.php-version }}
2020
extensions: json, mbstring, pdo, curl, pdo_sqlite
2121
coverage: none
22-
- name: Initialise
23-
run: |
24-
sudo composer self-update -q
25-
- name: Install dependencies
26-
run: |
27-
sudo COMPOSER_MEMORY_LIMIT=-1 COMPOSER_PROCESS_TIMEOUT=60 composer update --prefer-dist --no-progress --no-scripts
22+
- name: Install composer dependencies
23+
uses: php-actions/composer@v6
24+
with:
25+
php_version: ${{ matrix.php-version }}
2826
- name: run PHP Unit
2927
run: ./vendor/bin/phpunit

0 commit comments

Comments
 (0)