diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..fa56ea8 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @asantibanez diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..db9f251 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,26 @@ +--- +name: Bug report +about: Create a report to help us improve + +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. '...' +2. '...' +3. '...' + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Additional context** +Add any other context about the problem here. + +**Solution Ideas** +Initial thoughts or details about how this could be fixed diff --git a/.github/ISSUE_TEMPLATE/feature.md b/.github/ISSUE_TEMPLATE/feature.md new file mode 100644 index 0000000..214cc92 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature.md @@ -0,0 +1,14 @@ +--- +name: Feature +about: New feature idea + +--- + +### Summary +What's the new feature about? What should it do? + +### Proposal +How should it work? API ideas? + +### Additional Notes +Reference links or comments diff --git a/.github/PULL_REQUEST_TEMPLATE b/.github/PULL_REQUEST_TEMPLATE new file mode 100644 index 0000000..40c62fc --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE @@ -0,0 +1,18 @@ +## Summary + +[Provide a summary of the change.] + +## Issue + +[If exists, provide a link to the corresponding issue(s).] + +## Type of Change + +- [ ] :rocket: New Feature +- [ ] :bug: Bug Fix +- [ ] :hammer: Refactor +- [ ] :question: [Other] + +## Screenshot/Video + +[Provide a screenshot or video that describes the change if applicable] diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml new file mode 100644 index 0000000..1672518 --- /dev/null +++ b/.github/workflows/phpunit.yml @@ -0,0 +1,29 @@ +name: PHPUnit + +on: [push] + +jobs: + phpunit: + runs-on: ubuntu-latest + + steps: + - name: Cancel Previous Run + uses: styfle/cancel-workflow-action@0.6.0 + with: + access_token: ${{ github.token }} + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '7.4' + extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd, exif, imagick, bcmath + coverage: none + + - name: Checkout code + uses: actions/checkout@v2 + + - name: Install Composer dependencies + run: composer install --ignore-platform-reqs + + - name: Run tests + run: ./vendor/bin/phpunit