Skip to content

Commit

Permalink
Configure php version tests from 8.0 to 8.3 (#5)
Browse files Browse the repository at this point in the history
* Configure test for php versions from 8.0 to 8.3

* Add changelog action

* Remove auto-commit action to do actions locally
  • Loading branch information
cable8mm authored Mar 3, 2024
1 parent e69fab2 commit 7166064
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 16 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
27 changes: 22 additions & 5 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
@@ -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
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit 7166064

Please sign in to comment.