File tree Expand file tree Collapse file tree 11 files changed +42
-32
lines changed
Expand file tree Collapse file tree 11 files changed +42
-32
lines changed Original file line number Diff line number Diff line change 1+ * @ yoanm
Original file line number Diff line number Diff line change @@ -10,11 +10,8 @@ on: # Build any PRs and main branch changes
1010 # In case of updates to those workflows, they must be pre-checked by `pre-check-CI-updates.yml` rather than this workflow !
1111 # Any updates on those workflows are expected to be restricted to those workflows only ! (no update on code for instance)
1212 - ' .github/workflows/pre-check-CI-updates.yml'
13- - ' .github/workflows/CI.yml'
14- - ' .github/workflows/coverage-upload.yml'
1513 - ' .github/workflows/reusable-CI-workflow.yml'
1614 - ' .github/workflows/reusable-coverage-upload-workflow.yml'
17- - ' .github/workflows/auto-merge-dependabot.yml'
1815 push :
1916 branches : [ master ]
2017 schedule :
@@ -29,7 +26,6 @@ concurrency:
2926
3027env :
3128 TEST_OUTPUT_STYLE : pretty
32- COMPOSER_OPTIONS : --optimize-autoloader
3329
3430jobs :
3531 tests :
Original file line number Diff line number Diff line change 1818 uses : dependabot/fetch-metadata@v2.4.0
1919 with :
2020 github-token : " ${{ secrets.GITHUB_TOKEN }}"
21+
22+ - name : Add custom labels
23+ run : gh pr edit "${{github.event.pull_request.html_url}}" --add-label "with-nightly-tests"
24+ env :
25+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
26+
2127 - name : Enable auto-merge for Dependabot PRs
2228 if : ${{ steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
2329 run : gh pr merge --auto --squash "$PR_URL"
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ permissions:
99 checks : write # For the check run creation !
1010
1111jobs :
12- upload :
12+ coverage :
1313 name : Coverage
1414 permissions :
1515 contents : read
Original file line number Diff line number Diff line change 1212 branches : [master] # Only for PR targeting master branch
1313 paths : # /!\ Duplicate the same list as `on.pull_request.paths-ignore` property value for CI workflow !
1414 - ' .github/workflows/pre-check-CI-updates.yml' # This workflow
15- - ' .github/workflows/CI.yml'
16- - ' .github/workflows/coverage-upload.yml'
1715 - ' .github/workflows/reusable-CI-workflow.yml'
1816 - ' .github/workflows/reusable-coverage-upload-workflow.yml'
19- - ' .github/workflows/auto-merge-dependabot.yml'
2017
2118permissions :
2219 contents : read
3330 contents : read
3431 uses : ./.github/workflows/reusable-CI-workflow.yml
3532
36- upload :
33+ coverage :
3734 name : Coverage
3835 needs : [tests]
3936 permissions :
Original file line number Diff line number Diff line change 33# A library must not provide a composer.lock file
44composer.lock
55
6+ # Phpunit
67.phpunit.result.cache
Original file line number Diff line number Diff line change 11{
22 "plugins": [
33 "remark-preset-lint-consistent",
4- "remark-preset-lint-recommended"
4+ "remark-preset-lint-recommended",
5+ [
6+ "remark-lint-list-item-indent",
7+ "space"
8+ ]
59 ]
610}
Original file line number Diff line number Diff line change 4141 variables :
4242 CI : ' true'
4343 TEST_OUTPUT_STYLE : ' pretty'
44- COMPOSER_OPTIONS : ' --optimize-autoloader'
4544 COVERAGE_OUTPUT_STYLE : ' clover'
4645 COVERAGE_CLOVER_FILE_PATH : ' build/coverage/clover.xml'
4746 PHPCS_DISABLE_WARNING : ' true'
Original file line number Diff line number Diff line change @@ -109,5 +109,13 @@ scrutinizer-behat:
109109create-build-directories :
110110 mkdir -p ${PHPUNIT_COVERAGE_DIRECTORY} ${BEHAT_COVERAGE_DIRECTORY} ${REPORTS_DIRECTORY}
111111
112+ .PHONY : configure-dev-env
113+ configure-dev-env :
114+ npm install --global remark-cli remark-preset-lint-consistent remark-preset-lint-recommended remark-lint-list-item-indent
115+
116+ .PHONY : lint-markdown
117+ lint-markdown :
118+ npx remark . --output
119+
112120.PHONY : build install configure test test-unit test-functional codestyle create-build-directories scrutinizer-behat scrutinizer-phpunit
113121.DEFAULT : build
Original file line number Diff line number Diff line change 22
33[ ![ License] ( https://img.shields.io/github/license/yoanm/php-jsonrpc-server-sdk.svg )] ( https://github.com/yoanm/php-jsonrpc-server-sdk )
44[ ![ Code size] ( https://img.shields.io/github/languages/code-size/yoanm/php-jsonrpc-server-sdk.svg )] ( https://github.com/yoanm/php-jsonrpc-server-sdk )
5- [ ![ Dependabot Status] ( https://api.dependabot.com/badges/status?host=github\& repo=yoanm/php-jsonrpc-server-sdk )] ( https://dependabot.com )
5+ ![ Dependabot Status] ( https://flat.badgen.net/github/dependabot/yoanm/php-jsonrpc-server-sdk )
6+ ![ Last commit] ( https://badgen.net/github/last-commit/yoanm/php-jsonrpc-server-sdk )
67
78[ ![ Scrutinizer Build Status] ( https://img.shields.io/scrutinizer/build/g/yoanm/php-jsonrpc-server-sdk.svg?label=Scrutinizer\& logo=scrutinizer )] ( https://scrutinizer-ci.com/g/yoanm/php-jsonrpc-server-sdk/build-status/master )
89[ ![ Scrutinizer Code Quality] ( https://img.shields.io/scrutinizer/g/yoanm/php-jsonrpc-server-sdk/master.svg?logo=scrutinizer )] ( https://scrutinizer-ci.com/g/yoanm/php-jsonrpc-server-sdk/?branch=master )
You can’t perform that action at this time.
0 commit comments