File tree Expand file tree Collapse file tree 6 files changed +109
-2
lines changed Expand file tree Collapse file tree 6 files changed +109
-2
lines changed Original file line number Diff line number Diff line change 1+ version : 2
2+
3+ updates :
4+ - package-ecosystem : composer
5+ directory : /
6+ schedule :
7+ interval : weekly
8+ - package-ecosystem : github-actions
9+ directory : /
10+ schedule :
11+ interval : weekly
Original file line number Diff line number Diff line change 1+ # Taken from https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions
2+ # and https://github.com/dependabot/fetch-metadata/blob/06ea45a2e4582d87b11f03c7ce596ae3261f39f6/README.md?plain=1#L133-L160
3+ name : Dependabot auto-merge
4+
5+ on : pull_request
6+
7+ concurrency :
8+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
9+ cancel-in-progress : true
10+
11+ permissions :
12+ contents : write
13+ pull-requests : write
14+
15+ jobs :
16+ dependabot :
17+ runs-on : ubuntu-latest
18+ if : github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'typisttech/wordfence'
19+ steps :
20+ - name : Dependabot metadata
21+ id : metadata
22+ uses : dependabot/fetch-metadata@v2
23+ with :
24+ github-token : " ${{ secrets.GITHUB_TOKEN }}"
25+ - name : Enable auto-merge for Dependabot PRs
26+ if : steps.metadata.outputs.update-type == 'version-update:semver-minor'
27+ run : gh pr merge --auto --merge "$PR_URL"
28+ env :
29+ PR_URL : ${{github.event.pull_request.html_url}}
30+ GH_TOKEN : ${{secrets.GITHUB_TOKEN}}
Original file line number Diff line number Diff line change 1+ name : Test
2+
3+ on :
4+ workflow_dispatch :
5+ pull_request :
6+ branches :
7+ - main
8+ push :
9+ branches :
10+ - main
11+
12+ concurrency :
13+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
14+ cancel-in-progress : true
15+
16+ permissions : {}
17+
18+ jobs :
19+ pest :
20+ runs-on : ubuntu-latest
21+ strategy :
22+ matrix :
23+ php : ['8.3', '8.4']
24+ prefer : ['--prefer-lowest', '--prefer-stable']
25+ steps :
26+ - uses : actions/checkout@v4
27+
28+ - uses : shivammathur/setup-php@v2
29+ with :
30+ php-version : ${{ matrix.php }}
31+ coverage : xdebug
32+ env :
33+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34+
35+ - id : composer-cache
36+ run : echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
37+ - uses : actions/cache@v4
38+ with :
39+ path : ${{ steps.composer-cache.outputs.dir }}
40+ key : ${{ runner.os }}-${{ matrix.php }}-composer-${{ matrix.prefer }}-${{ hashFiles('**/composer.json') }}-${{ github.run_id }}
41+ restore-keys : ${{ runner.os }}-${{ matrix.php }}-composer-${{ matrix.prefer }}-
42+
43+ - run : composer update --no-progress --prefer-dist --optimize-autoloader ${{ matrix.prefer }}
44+
45+ - run : composer pest:unit -- --ci --coverage-clover coverage.xml
46+ - run : composer pest:feature -- --ci
47+ - run : composer pest:e2e -- --ci
48+
49+ - uses : actions/upload-artifact@v4
50+ with :
51+ name : coverage
52+ path : coverage.out
53+
54+ codecov :
55+ needs : pest
56+ runs-on : ubuntu-latest
57+ permissions :
58+ id-token : write
59+ steps :
60+ - uses : actions/download-artifact@v4
61+ with :
62+ name : coverage
63+ - uses : codecov/codecov-action@v5
64+ with :
65+ use_oidc : ${{ !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork) }}
Original file line number Diff line number Diff line change 22composer.phar
33composer.lock
44/vendor /
5+ /coverage.xml
Original file line number Diff line number Diff line change 1- # wordfence-api
1+ # typisttech/ wordfence-api
Original file line number Diff line number Diff line change 1010
1111describe (Client::class, static function (): void {
1212 it ('fetches ' , function (Feed $ feed , int $ expectedCount ): void {
13- $ client = new Client () ;
13+ $ client = new Client ;
1414
1515 $ actual = $ client ->fetch ($ feed );
1616
You can’t perform that action at this time.
0 commit comments