File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Test Pest Testsuite
2+
3+ on :
4+ push :
5+ branches : [ "main", "develop" ]
6+ pull_request :
7+ branches : [ "main", "develop" ]
8+
9+ permissions :
10+ contents : read
11+
12+ jobs :
13+ test-pest :
14+
15+ runs-on : ubuntu-latest
16+
17+ steps :
18+ - uses : actions/checkout@v3
19+
20+ - name : Validate composer.json and composer.lock
21+ run : composer validate --strict
22+
23+ - name : Cache Composer packages
24+ id : composer-cache
25+ uses : actions/cache@v3
26+ with :
27+ path : vendor
28+ key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
29+ restore-keys : |
30+ ${{ runner.os }}-php-
31+
32+ - name : Install dependencies
33+ run : composer install --prefer-dist --no-progress
34+
35+ # Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
36+ # Docs: https://getcomposer.org/doc/articles/scripts.md
37+
38+ - name : Run test suite
39+ run : composer run-script test-pest
Original file line number Diff line number Diff line change 4444 },
4545 "scripts" : {
4646 "pint" : " @php vendor/bin/pint -v" ,
47- "test-pint" : " @php vendor/bin/pint -v --test"
47+ "test-pint" : " @php vendor/bin/pint -v --test" ,
48+ "test-pest" : " @php webprint-service test"
4849 },
4950 "minimum-stability" : " dev" ,
5051 "prefer-stable" : true ,
Original file line number Diff line number Diff line change 11<?php
22
3- test ('inspiring command ' , function () {
4- $ this ->artisan ('inspiring ' )
5- ->expectsOutput ('Simplicity is the ultimate sophistication. ' )
6- ->assertExitCode (0 );
7- });
3+ // test('inspiring command', function () {
4+ // $this->artisan('inspiring')
5+ // ->expectsOutput('Simplicity is the ultimate sophistication.')
6+ // ->assertExitCode(0);
7+ // });
Original file line number Diff line number Diff line change 11<?php
22
3- test ('example ' , function () {
4- expect (true )->toBeTrue ();
5- });
3+ // test('example', function () {
4+ // expect(true)->toBeTrue();
5+ // });
You can’t perform that action at this time.
0 commit comments