Skip to content

Commit e3e4455

Browse files
committed
refactor: allineamento requisiti workflow GitHub Actions
1 parent 5162c1b commit e3e4455

1 file changed

Lines changed: 23 additions & 23 deletions

File tree

.github/workflows/main.yml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,30 @@ on:
55

66
jobs:
77
tests:
8-
runs-on: ubuntu-18.10
9-
8+
runs-on: ubuntu-22.04
9+
1010
strategy:
1111
matrix:
12-
python-version: [3.9]
13-
php-version: ['7.4']
14-
12+
python-version: ['3.12']
13+
php-version: ['8.3']
14+
1515
steps:
16-
- uses: actions/checkout@v2
17-
18-
# - name: Set up PHP ${{ matrix.php-version }}
19-
# uses: shivammathur/setup-php@v2
20-
# with:
21-
# php-version: ${{ matrix.php-version }}
22-
# extensions: zip, mbstring, pdo_mysql, mysql, dom, xsl, openssl, intl, curl, soap, gd
23-
24-
- name: Setup PHP
16+
- uses: actions/checkout@v4
17+
18+
- name: Set up PHP ${{ matrix.php-version }}
19+
uses: shivammathur/setup-php@v2
20+
with:
21+
php-version: ${{ matrix.php-version }}
22+
extensions: curl, dom, fileinfo, intl, json, libxml, mbstring, openssl, pdo, simplexml, xsl, zip, pdo_mysql, mysql, gd
23+
coverage: none
24+
25+
- name: Configure PHP settings
2526
run: |
26-
sudo apt install libapache2-mod-php7.4
27-
sudo sed -i 's,^post_max_size =.*$,post_max_size = 32M,' /etc/php/7.4/apache2/php.ini
28-
sudo sed -i 's,^upload_max_filesize =.*$,upload_max_filesize = 32M,' /etc/php/7.4/apache2/php.ini
29-
27+
sudo sed -i 's,^post_max_size =.*$,post_max_size = 32M,' /etc/php/${{ matrix.php-version }}/apache2/php.ini
28+
sudo sed -i 's,^upload_max_filesize =.*$,upload_max_filesize = 32M,' /etc/php/${{ matrix.php-version }}/apache2/php.ini
29+
3030
- name: Set up Python ${{ matrix.python-version }}
31-
uses: actions/setup-python@v2
31+
uses: actions/setup-python@v5
3232
with:
3333
python-version: ${{ matrix.python-version }}
3434

@@ -70,7 +70,7 @@ jobs:
7070
7171
- name: Cache Composer packages
7272
id: composer-cache
73-
uses: actions/cache@v2
73+
uses: actions/cache@v4
7474
with:
7575
path: vendor
7676
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
@@ -81,9 +81,9 @@ jobs:
8181
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
8282

8383
- name: Use NPM and Node.js
84-
uses: actions/setup-node@v2
84+
uses: actions/setup-node@v4
8585
with:
86-
node-version: '14'
86+
node-version: '20'
8787
- name: Install NPM and compile assets
8888
run: |
8989
yarn install
@@ -97,7 +97,7 @@ jobs:
9797
sudo rm /var/www/html/openstamanager/.htaccess
9898
9999
- name: Check out test repository
100-
uses: actions/checkout@v2
100+
uses: actions/checkout@v4
101101
with:
102102
repository: devcode-it/openstamanager-tests
103103
path: python-tests

0 commit comments

Comments
 (0)