@@ -426,26 +426,38 @@ jobs:
426426 working-directory: ./phpBB3
427427 # END Other Tests Job
428428{% else %}
429+ # For most extensions, this workflow should not need changing;
430+ # simply commit it to your repository.
431+ #
432+ # See the README for full details and configuration instructions:
433+ # - https://github.com/phpbb-extensions/test-framework
434+ #
429435on:
430- push:
431- branches: # Run tests when commits are pushed to these branches in your repo
432- - main
433- - master
434- - develop
435- - dev/*
436- pull_request: # Run tests when pull requests are made on these branches in your repo
437- branches:
438- - main
439- - master
440- - develop
441- - dev/*
436+ push:
437+ # Run tests when commits are pushed to these branches in your repo,
438+ # or remove this branches section to run tests on all your branches
439+ branches:
440+ - main # Main production branch
441+ - master # Legacy or alternative main branch
442+ - dev/* # Any feature branches under "dev/", e.g., dev/new-feature
443+ - release-* # Any release branches under "release-", e.g., release-1.0.0
444+
445+ pull_request:
446+ # Run tests when pull requests are made on these branches in your repo,
447+ # or remove this branches section to run tests on all your branches
448+ branches:
449+ - main
450+ - master
451+ - dev/*
442452
443453jobs:
444- call-tests:
445- name: Extension tests
446- uses: phpbb-extensions/test-framework/.github/workflows/tests.yml@3.3.x
447- with:
448- EXTNAME: {{ EXTENSION .vendor_name }}/{{ EXTENSION .extension_name }} # Your extension vendor/package name
449-
450- # See the README for full details and setup instructions: https://github.com/phpbb-extensions/test-framework
454+ call-tests:
455+ name: Extension tests
456+ # Set the phpBB branch to test your extension with after the @ symbol
457+ # - 3.3.x: Targets the phpBB 3.3.x release line
458+ # - master: Targets the latest development version of phpBB (master branch)
459+ uses: phpbb-extensions/test-framework/.github/workflows/tests.yml@{{ skeleton_version_compare(REQUIREMENTS .phpbb_version_min , " 4.0" , " <" ) ? ' 3.3.x' : ' master' }}
460+ with:
461+ # Your extension vendor/package name
462+ EXTNAME: {{ EXTENSION .vendor_name }}/{{ EXTENSION .extension_name }}
451463{% endif %}
0 commit comments