Skip to content

Commit ab60fe7

Browse files
committed
Add PHP_VERSION env var to php-linter
1 parent df230ef commit ab60fe7

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/php-linter.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: php-linter
33

44
on: [push, pull_request]
55

6+
env:
7+
PHP_VERSION: '8.1'
8+
69
permissions:
710
contents: read
811

@@ -11,13 +14,13 @@ jobs:
1114
runs-on: ubuntu-latest
1215
steps:
1316
- name: Checkout
14-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
1518

1619
- name: Update apt cache
1720
run: sudo apt-get update
1821

19-
- name: Install php 8.1
20-
run: sudo apt-get install php8.1-cli
22+
- name: Install php ${{ env.PHP_VERSION }}
23+
run: sudo apt-get install php${{ env.PHP_VERSION }}-cli
2124

2225
- name: Validate composer.json and composer.lock
2326
run: composer validate --strict

0 commit comments

Comments
 (0)