diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 590e1f5..cf8e290 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -3,21 +3,16 @@ on: workflow_dispatch: push: branches-ignore: - - 'dependabot/npm_and_yarn/*' + - "dependabot/npm_and_yarn/*" jobs: phplint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: Checkout code + uses: actions/checkout@v4 with: fetch-depth: 2 - name: "laravel-pint" uses: aglipanci/laravel-pint-action@0.1.0 with: preset: laravel - - - name: Commit changes - uses: stefanzweifel/git-auto-commit-action@v4 - with: - commit_message: PHP Linting (Pint) - skip_fetch: true diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index cb1c455..22b7f55 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -1,17 +1,34 @@ -name: Build & Test +name: Tests on: + workflow_dispatch: push: - branches: [main] - pull_request: - branches: [main] + branches-ignore: + - "dependabot/npm_and_yarn/*" + +permissions: + contents: read jobs: build: runs-on: ubuntu-latest + strategy: + fail-fast: true + matrix: + php: [8.0, 8.1, 8.2, 8.3] + + name: PHP ${{ matrix.php }} + steps: - - uses: actions/checkout@v2 + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + coverage: none - name: Validate composer.json and composer.lock run: composer validate diff --git a/.github/workflows/update-changelog.yml b/.github/workflows/update-changelog.yml new file mode 100644 index 0000000..5d9d68e --- /dev/null +++ b/.github/workflows/update-changelog.yml @@ -0,0 +1,13 @@ +name: update changelog + +on: + release: + types: [released] + +permissions: {} + +jobs: + update: + permissions: + contents: write + uses: cable8mm/.github/.github/workflows/update-changelog.yml@main diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..d74d29a --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,21 @@ +# Release Notes + +## v1.1.1 - 2023-07-14 + +## What's Changed + +- Fix request song with cookie by @cable8mm in https://github.com/cable8mm/water-melon/pull/3 + +**Full Changelog**: https://github.com/cable8mm/water-melon/compare/v1.1.0...v1.1.1 + +## v1.1.0 - 2023-04-24 + +## What's Changed + +- Fix melon default image by @cable8mm in https://github.com/cable8mm/water-melon/pull/2 + +**Full Changelog**: https://github.com/cable8mm/water-melon/compare/v1.0.0...v1.1.0 + +## v1.0.0 - 2023-03-23 + +A simple melon crawling library - Water Melon diff --git a/composer.json b/composer.json index e9584c2..5dd2413 100644 --- a/composer.json +++ b/composer.json @@ -10,12 +10,12 @@ ], "type": "project", "require": { - "php": ">=8.1", + "php": "^8.0", "guzzlehttp/guzzle": "^7.5" }, "require-dev": { - "phpunit/phpunit": "^10", - "laravel/pint": "^1.6" + "phpunit/phpunit": "^9.0|^10.0|^11.0", + "laravel/pint": "^1.0" }, "license": "MIT", "authors": [