@@ -13,77 +13,37 @@ jobs:
1313 strategy :
1414 max-parallel : 4
1515 matrix :
16- operatingSystem : [ubuntu-latest, windows-latest ]
17- phpVersion : ['8.0 ', '8.1 ']
16+ operatingSystem : [ubuntu-latest]
17+ phpVersion : ['8.1 ', '8.2', '8.3 ']
1818 fail-fast : false
1919 env :
2020 extensions : curl, fileinfo, gd, mbstring, openssl, pdo, pdo_sqlite, sqlite3, xml, zip
21- key : winter-docs-cache-v1
21+ concurrency :
22+ group : ${{ github.ref }}-${{ github.workflow }}-${{ matrix.operatingSystem }}-${{ matrix.phpVersion }}
23+ cancel-in-progress : true
2224 steps :
23- - name : Cancel previous incomplete runs
24- uses : styfle/cancel-workflow-action@0.8.0
25- with :
26- access_token : ${{ github.token }}
27-
2825 - name : Checkout Winter CMS
29- uses : actions/checkout@v2
26+ uses : actions/checkout@v4
3027 with :
3128 repository : wintercms/winter
3229 ref : develop
3330
34- - name : Checkout plugin
35- uses : actions/checkout@v2
31+ - name : Checkout Winter Docs plugin
32+ uses : actions/checkout@v4
3633 with :
3734 path : plugins/winter/docs
3835
39- - name : Setup extension cache
40- id : extcache
41- uses : shivammathur/cache-extensions@v1
42- with :
43- php-version : ${{ matrix.phpVersion }}
44- extensions : ${{ env.extensions }}
45- key : ${{ env.key }}
46-
47- - name : Cache extensions
48- uses : actions/cache@v2
49- with :
50- path : ${{ steps.extcache.outputs.dir }}
51- key : ${{ steps.extcache.outputs.key }}
52- restore-keys : ${{ steps.extcache.outputs.key }}
53-
5436 - name : Install PHP
5537 uses : shivammathur/setup-php@v2
5638 with :
5739 php-version : ${{ matrix.phpVersion }}
5840 tools : composer:v2
5941 extensions : ${{ env.extensions }}
6042
61- - name : Setup dependency cache
62- id : composercache
63- run : echo "::set-output name=dir::$(composer config cache-files-dir)"
64-
65- - name : Cache dependencies
66- uses : actions/cache@v2
67- with :
68- path : ${{ steps.composercache.outputs.dir }}
69- key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
70- restore-keys : ${{ runner.os }}-composer-
71-
7243 - name : Install Composer dependencies
73- run : composer install --no-interaction --no-progress --no-scripts
74-
75- - name : Setup problem matchers for PHPUnit
76- if : matrix.phpVersion == '8.0'
77- run : echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
44+ run : |
45+ sed -i 's|plugins/myauthor/\*/composer.json|plugins/*/*/composer.json|g' composer.json
46+ composer install --no-interaction --no-progress --no-scripts
7847
7948 - name : Run tests
80- if : matrix.phpVersion != '8.0' || matrix.operatingSystem != 'ubuntu-latest'
81- run : php artisan winter:test -p Winter.Docs -- --testdox
82-
83- - name : Run tests (and generate coverage report)
84- if : matrix.phpVersion == '8.0' && matrix.operatingSystem == 'ubuntu-latest'
85- env :
86- CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
87- run : |
88- php artisan winter:test -p Winter.Docs --testdox --coverage-clover coverage.xml
89- bash <(curl -s https://codecov.io/bash)
49+ run : php artisan winter:test -p Winter.Docs
0 commit comments