diff --git a/.forgejo/workflows/validate.yaml b/.forgejo/workflows/validate.yaml new file mode 100644 index 0000000..e0c7fc8 --- /dev/null +++ b/.forgejo/workflows/validate.yaml @@ -0,0 +1,19 @@ +name: Validate +on: + push: + branches: + - '*' + +jobs: + validate_package: + runs-on: ubuntu-22.04 + container: git.gertjankrol.nl/docker/php-toolkit:latest + steps: + - name: Check out repository + uses: actions/checkout@v3 + - name: composer install + run: composer install --profile + - name: composer security-check + run: composer security-check + - name: composer normalize check + run: composer normalize --dry-run diff --git a/CHANGELOG.md b/CHANGELOG.md index 6276aff..a86fec2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,11 @@ All notable changes to this package will be documented in this file ## Unreleased +## 1.1.0 - 2023-05-28 +- Bumped PHP requirement to 8.2 and bumped Composer dependencies [minor] +- Added Forgejo test workflows [patch] +- Updated `README` & `LICENSE` [patch] + ## 1.0.1 - 2022-08-18 - Added exclusion for `SlevomatCodingStandard.Classes.DisallowLateStaticBindingForConstants` to allow late static binding for constants [patch] diff --git a/LICENSE.md b/LICENSE.md index e344d12..40ded4e 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ MIT License -Copyright (c) Author +Copyright (c) 2023 - Gertjan Krol Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index affdffd..cdb01dc 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ For easier usage, add the following to `scripts` in your project's `composer.jso ```json ... "scripts": { + ... "style": "vendor/bin/phpcs --standard=./path/to/copied/phpcs.xml", "fix-style": "vendor/bin/phpcbf --standard=./path/to/copied/phpcs.xml", }. diff --git a/composer.json b/composer.json index 2267ccd..4b105ea 100644 --- a/composer.json +++ b/composer.json @@ -1,39 +1,41 @@ { "name": "crawl/coding-standard", "description": "The Crawl Coding Standard", + "license": "MIT", + "type": "library", "keywords": [ "crawl", "coding standard", "code sniffer", "code quality" ], - "homepage": "https://git.gertjankrol.nl/crawl/coding-standard", - "license": "MIT", - "type": "library", "authors": [ { "name": "Gertjan Krol", "email": "hello@gertjankrol.nl" } ], + "homepage": "https://git.gertjankrol.nl/crawl/coding-standard", "require": { - "php": "^8.1", + "php": "^8.2", "phpcompatibility/php-compatibility": "^9.3", "sirbrillig/phpcs-variable-analysis": "^2.11", - "slevomat/coding-standard": "^7.2", + "slevomat/coding-standard": "^8.12", "squizlabs/php_codesniffer": "^3.7" }, "require-dev": { - "enlightn/security-checker": "^1.10" + "enlightn/security-checker": "^1.10", + "ergebnis/composer-normalize": "^2.31" + }, + "config": { + "allow-plugins": { + "dealerdirect/phpcodesniffer-composer-installer": true, + "ergebnis/composer-normalize": true + }, + "optimize-autoloader": true, + "sort-packages": true }, "scripts": { "security-checker": "vendor/bin/security-checker security:check composer.lock" - }, - "config": { - "optimize-autoloader": true, - "sort-packages": true, - "allow-plugins": { - "dealerdirect/phpcodesniffer-composer-installer": true - } } }