Skip to content

chore: use organization workflows for improve actions #151

chore: use organization workflows for improve actions

chore: use organization workflows for improve actions #151

name: Smart Commenting
on:
pull_request:
branches:
- develop
paths:
- '**.php'
- 'composer.*'
- '.github/workflows/smart-commenting.yml'
push:
branches:
- develop
paths:
- '**.php'
- 'composer.*'
- '.github/workflows/smart-commenting.yml'
jobs:
add-comment-for-GPG-Signing:
uses: codeigniter4/.github/.github/workflows/label-signing.yml@main
add-comment-for-conflict:
uses: codeigniter4/.github/.github/workflows/label-add-conflict-all-pr.yml@main

Check failure on line 23 in .github/workflows/smart-commenting.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/smart-commenting.yml

Invalid workflow file

error parsing called workflow ".github/workflows/smart-commenting.yml" -> "codeigniter4/.github/.github/workflows/label-add-conflict-all-pr.yml@main" (source branch with sha:d8ea2aa19c2eb2b6482402133f328a6105d2aa22) : workflow is not reusable as it is missing a `on.workflow_call` trigger
add-comment-for-tests:
if: github.event.label.name == 'tests needed'
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Add comment for PHPUnit test
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
**Unit Testing:**
Unit testing is expected for all CodeIgniter components. We use PHPUnit, and run unit tests using GitHub Actions for each PR submitted or changed.
**So please write a unit test or update the existing tests.**
See [unit testing][1] for more info.
[1]: https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/pull_request.md#unit-testing