@@ -3,56 +3,12 @@ name: Test and Static Analysis (Pull Request)
33on : pull_request
44
55jobs :
6- check-version-in-composer-json :
7- name : Check Version
8- runs-on : ubuntu-latest
9-
10- steps :
11- - name : Set up PHP
12- uses : shivammathur/setup-php@v2
13- with :
14- php-version : 8.3
15- tools : composer:v2
16-
17- - name : Checkout code
18- uses : actions/checkout@v4
19- with :
20- fetch-depth : 0
21-
22- - name : PHP Version Check
23- run : php -v
24-
25- - name : Validate Composer JSON
26- run : composer validate
27-
28- - name : Get Version From Comopser JSON
29- id : new-version
30- run : |
31- echo version=$(cat composer.json | grep version | head -1 | grep -Po '\d+\.\d+\.\d+') >> $GITHUB_OUTPUT
32-
33- - name : Show New Version
34- run : echo "version=${{ steps.new-version.outputs.version }}"
35-
36- - name : Show Tags
37- run : git tag
38-
39- - name : Check If The Version Is Not In The Tag List
40- run : |
41- for tag in `git tag`
42- do
43- if [ $tag = ${{ steps.new-version.outputs.version }} ]; then
44- echo "version ${{ steps.new-version.outputs.version }} already exists."
45- exit 1
46- fi
47- done
48- echo "OK."
49-
506 test-and-static-analysis :
517 name : Test and Lint
528 runs-on : ubuntu-latest
539 strategy :
5410 matrix :
55- php : ['8.1', '8.2', '8.3', '8.4']
11+ php : ['8.1', '8.2', '8.3', '8.4', '8.5' ]
5612
5713 steps :
5814 - name : Set up PHP
@@ -63,12 +19,12 @@ jobs:
6319 tools : composer:v2
6420
6521 - name : Set up Node
66- uses : actions/setup-node@v4
22+ uses : actions/setup-node@v6
6723 with :
68- node-version : ' 20 .x'
24+ node-version : ' 24 .x'
6925
7026 - name : Checkout code
71- uses : actions/checkout@v4
27+ uses : actions/checkout@v5
7228 with :
7329 fetch-depth : 0
7430
8541 - name : PHP Lint
8642 run : ./vendor/bin/parallel-lint src tests examples
8743
88- # - name: Neon Lint
89- # run: ./vendor/nette/neon/bin/neon-lint conf
90-
91- # - name: PHP MD
92- # run: |
93- # ./vendor/bin/phpmd --version
94- # ./vendor/bin/phpmd ./src/ ./examples/ ./tests/ text phpmd.xml
95-
9644 - name : PHP Code Sniffer
9745 run : |
9846 ./vendor/bin/phpcs --version
11563 runs-on : ubuntu-latest
11664 strategy :
11765 matrix :
118- php : ['8.3 ']
66+ php : ['8.4 ']
11967
12068 steps :
12169 - name : Set up PHP
@@ -126,12 +74,12 @@ jobs:
12674 tools : composer:v2
12775
12876 - name : Set up Node
129- uses : actions/setup-node@v4
77+ uses : actions/setup-node@v6
13078 with :
131- node-version : ' 20 .x'
79+ node-version : ' 24 .x'
13280
13381 - name : Checkout code
134- uses : actions/checkout@v4
82+ uses : actions/checkout@v5
13583 with :
13684 fetch-depth : 0
13785
0 commit comments