File tree Expand file tree Collapse file tree 2 files changed +40
-2
lines changed
Expand file tree Collapse file tree 2 files changed +40
-2
lines changed Original file line number Diff line number Diff line change 1+ name : PHPUnit
2+
3+ on :
4+ push :
5+ branches : [ master ]
6+ pull_request :
7+ branches : [ master ]
8+
9+ jobs :
10+ build :
11+
12+ runs-on : ubuntu-20.04
13+ strategy :
14+ matrix :
15+ php-versions : ['8.0', '8.1']
16+
17+ name : PHPUnit ${{ matrix.php-versions }}
18+
19+ steps :
20+ - uses : actions/checkout@v2
21+
22+ - name : Validate composer.json and composer.lock
23+ run : composer validate
24+
25+ - name : Cache Composer packages
26+ id : composer-cache
27+ uses : actions/cache@v2
28+ with :
29+ path : vendor
30+ key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
31+ restore-keys : |
32+ ${{ runner.os }}-php-
33+ - name : Install dependencies
34+ if : steps.composer-cache.outputs.cache-hit != 'true'
35+ run : composer install --prefer-dist --no-progress --no-suggest
36+
37+ - name : Run test suite
38+ run : composer run-script test
Original file line number Diff line number Diff line change 77
88class MatomoTest extends TestCase
99{
10- const TEST_SITE_URL = 'https://demo.matomo.org / ' ;
10+ const TEST_SITE_URL = 'https://demo.matomo.cloud / ' ;
1111
12- const TEST_SITE_ID = 62 ;
12+ const TEST_SITE_ID = 1 ;
1313
1414 const TEST_TOKEN = 'anonymous ' ;
1515
You can’t perform that action at this time.
0 commit comments