@@ -18,18 +18,18 @@ jobs:
1818 strategy :
1919 matrix :
2020 install-args : ['', '--prefer-lowest']
21- php-version : ['8.1', '8.2']
21+ php-version : ['8.1', '8.2', '8.3' ]
2222 fail-fast : false
2323
2424 steps :
2525 # Cancel previous runs of the same branch
2626 - name : cancel
27- uses : styfle/cancel-workflow-action@0.10 .1
27+ uses : styfle/cancel-workflow-action@0.12 .1
2828 with :
2929 access_token : ${{ github.token }}
3030
3131 - name : " Checkout"
32- uses : " actions/checkout@v3 "
32+ uses : " actions/checkout@v4 "
3333
3434 - name : " Install PHP with extensions"
3535 uses : " shivammathur/setup-php@v2"
4444 echo "::set-output name=dir::$(composer config cache-files-dir)"
4545
4646 - name : composer-cache
47- uses : actions/cache@v3
47+ uses : actions/cache@v4
4848 with :
4949 path : ${{ steps.composercache.outputs.dir }}
5050 key : composer-${{ hashFiles('**/composer.json') }}-${{ matrix.install-args }}
6161 run : " vendor/bin/phpunit"
6262
6363 - name : phpstan-cache
64- uses : actions/cache@v3
64+ uses : actions/cache@v4
6565 with :
6666 key : phpstan-${{ matrix.php-version }}-${{ matrix.install-args }}-${{ github.ref }}-${{ github.sha }}
6767 path : .phpstan-cache
@@ -76,16 +76,16 @@ jobs:
7676
7777 - name : " Run coding standard checks with squizlabs/php_codesniffer"
7878 run : " composer cs-check"
79- if : ${{ matrix.php-version == '7.2' }} # Do not suggest using features after 7.2
8079
8180 - name : " Archive code coverage results"
82- uses : actions/upload-artifact@v3
81+ uses : actions/upload-artifact@v4
8382 with :
8483 name : " codeCoverage"
8584 path : " build"
85+ overwrite : true
8686
87- - uses : codecov/codecov-action@v3.1.4 # upload the coverage to codecov
87+ - uses : codecov/codecov-action@v4.0.1 # upload the coverage to codecov
8888 with :
89- fail_ci_if_error : true # optional (default = false)
90- # Do not upload in forks, and only on php8, latest deps
91- if : ${{ github.repository == 'thecodingmachine/graphqlite' && matrix.php-version == '8.0 ' && matrix.install-args == '' }}
89+ fail_ci_if_error : false # optional (default = false) - Need CODECOV_TOKEN
90+ # Do not upload in forks, and only on php8.3 , latest deps
91+ if : ${{ github.repository == 'thecodingmachine/graphqlite' && matrix.php-version == '8.3 ' && matrix.install-args == '' }}
0 commit comments