11name : CI
22
33on :
4- pull_request :
4+ pull_request : null
55 push :
66 branches :
77 - " *.*"
8- - master
8+ - " master"
99 schedule :
1010 - cron : " 0 4 * * *"
1111
1212jobs :
1313 tests :
14- runs-on : ubuntu-20 .04
14+ runs-on : ubuntu-22 .04
1515 strategy :
1616 fail-fast : false
1717 matrix :
@@ -39,10 +39,10 @@ jobs:
3939 - php-version : ' 8.1'
4040 symfony-version : ' 5.4.*'
4141 dependencies : ' lowest'
42- coverage : " pcov"
42+ coverage : ' pcov'
4343 steps :
4444 - name : " Checkout"
45- uses : " actions/checkout@v2 "
45+ uses : " actions/checkout@v4 "
4646
4747 - name : " Install PHP"
4848 uses : " shivammathur/setup-php@v2"
5353
5454 - name : " Change stability"
5555 if : " matrix.stability != ''"
56- run : perl -pi -e 's/^}$/,"minimum-stability":"'"${{ matrix.minimum-stability }}"'"}/' composer.json && cat composer.json
56+ run : |
57+ perl -pi -e 's/^}$/,"minimum-stability": "${{ matrix.minimum-stability }}"}/' composer.json
58+ cat composer.json
5759
5860 - name : " Webonyx GraphQL version"
5961 if : " matrix.graphql-version != ''"
@@ -64,57 +66,54 @@ jobs:
6466 run : composer remove --no-update ${{ matrix.remove-dependencies }}
6567
6668 - name : " Install dependencies"
67- uses : ramsey/composer-install@v2
69+ uses : " ramsey/composer-install@v2"
6870 with :
6971 dependency-versions : ${{ matrix.dependencies }}
7072 env :
7173 SYMFONY_REQUIRE : " ${{ matrix.symfony-version }}"
7274
7375 - name : " Run tests"
74- run : composer test
76+ run : composer run test
7577
7678 - name : " Upload coverage results to Coveralls"
7779 if : " matrix.coverage == 'pcov'"
7880 env :
7981 COVERALLS_REPO_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8082 run : |
81- wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.5.1 /php-coveralls.phar
83+ wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.6.0 /php-coveralls.phar
8284 php php-coveralls.phar --coverage_clover=build/logs/clover.xml -v
85+
8386 coding-standard :
84- runs-on : ubuntu-20 .04
87+ runs-on : ubuntu-22 .04
8588 name : Coding Standard
8689 steps :
8790 - name : " Checkout"
88- uses : " actions/checkout@v2 "
91+ uses : " actions/checkout@v4 "
8992
9093 - name : " Install PHP"
9194 uses : " shivammathur/setup-php@v2"
9295 with :
9396 tools : flex
9497 php-version : " 8.1"
98+ coverage : " none"
9599
96100 - name : " Install dependencies"
97- uses : ramsey/composer-install@v2
101+ uses : " ramsey/composer-install@v2"
98102
99103 - name : " Check coding standard"
100- run : composer check-cs
104+ run : composer run check-cs
101105
102106 static-analysis :
103- runs-on : ubuntu-20 .04
107+ runs-on : ubuntu-22 .04
104108 name : " Static analysis"
105- strategy :
106- fail-fast : false
107- matrix :
108- php-version :
109- - ' 8.1'
110109 steps :
111110 - name : " Checkout"
112- uses : " actions/checkout@v2 "
111+ uses : " actions/checkout@v4 "
113112
114113 - name : " Install PHP"
115114 uses : " shivammathur/setup-php@v2"
116115 with :
117- php-version : ${{ matrix.php-version }}
116+ php-version : " 8.1 "
118117 coverage : " none"
119118
120119 - name : " Cache dependencies installed with composer"
@@ -125,7 +124,7 @@ jobs:
125124 restore-keys : " php-${{ matrix.php-version }}-composer-locked-"
126125
127126 - name : " Install dependencies"
128- uses : ramsey/composer-install@v2
127+ uses : " ramsey/composer-install@v2"
129128
130129 - name : " Run static-analysis"
131- run : composer static-analysis
130+ run : composer run static-analysis
0 commit comments