diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8807bd8..9ffbd22 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -6,11 +6,10 @@ on: branches: - master pull_request: - branches: - - master + types: [opened, edited, reopend, synchronize] jobs: - check-code-style: + lint: name: Check code style runs-on: ubuntu-latest if: ${{ github.actor != 'dependabot[bot]' }} @@ -24,7 +23,7 @@ jobs: - name: Setup PHP with PECL extension uses: shivammathur/setup-php@v2 with: - php-version: '8.0' + php-version: '8.1' extensions: json, openssl, zlib, zip - name: Composer install @@ -33,7 +32,7 @@ jobs: composer-options: "--no-scripts" - name: Run php-cs-fixer - run: ./vendor/bin/php-cs-fixer fix + run: vendor/bin/php-cs-fixer fix - name: Apply php-cs-fixer changes uses: stefanzweifel/git-auto-commit-action@v4 diff --git a/.github/workflows/draft-release.yaml b/.github/workflows/draft-release.yaml index a8ad240..848977b 100644 --- a/.github/workflows/draft-release.yaml +++ b/.github/workflows/draft-release.yaml @@ -1,5 +1,5 @@ --- -name: Release Drafter +name: Draft Release on: push: @@ -7,11 +7,13 @@ on: - master jobs: - update_release_draft: - name: ✏️ Draft release + update-release-draft: + name: Update runs-on: ubuntu-latest + steps: - - name: 🚀 Run Release Drafter + - name: Run release drafter + id: draft uses: release-drafter/release-drafter@v5 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/labels.yaml b/.github/workflows/sync-labels.yaml similarity index 70% rename from .github/workflows/labels.yaml rename to .github/workflows/sync-labels.yaml index d932306..dfd371d 100644 --- a/.github/workflows/labels.yaml +++ b/.github/workflows/sync-labels.yaml @@ -11,12 +11,15 @@ on: jobs: labels: - name: ♻️ Sync labels + name: Sync labels runs-on: ubuntu-latest + if: ${{ github.actor != 'dependabot[bot]' }} + steps: - - name: ⤵️ Check out code from GitHub + - name: Checkout repository uses: actions/checkout@v3 - - name: 🚀 Run Label Syncer + + - name: Run Label Syncer uses: micnncim/action-label-syncer@v1.3.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/pr-labels.yaml b/.github/workflows/verify-pr-labels.yaml similarity index 75% rename from .github/workflows/pr-labels.yaml rename to .github/workflows/verify-pr-labels.yaml index e3e5d63..d122448 100644 --- a/.github/workflows/pr-labels.yaml +++ b/.github/workflows/verify-pr-labels.yaml @@ -7,16 +7,18 @@ on: types: [opened, labeled, unlabeled, synchronize] jobs: - pr_labels: + pr-labels: name: Verify runs-on: ubuntu-latest + steps: - - name: 🏷 Verify PR has a valid label + - name: Verify PR has a valid label uses: jesusvasquez333/verify-pr-label-action@v1.4.0 with: github-token: "${{ secrets.GITHUB_TOKEN }}" pull-request-number: "${{ github.event.pull_request.number }}" valid-labels: >- - breaking-change, bugfix, documentation, enhancement, - refactor, performance, new-feature, maintenance, ci, dependencies + breaking-change, bugfix, hotfix, documentation, enhancement, + refactor, performance, new-feature, maintenance, ci, + dependencies, skip-changelog disable-reviews: true diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..fd4311b --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,9 @@ +# The MIT License (MIT) + +Copyright © 2022 Exonet + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.