diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..d8bac3e --- /dev/null +++ b/.gitattributes @@ -0,0 +1,6 @@ +# Exclude Git and CI configuration files from archives. +.git* export-ignore + +# Exclude test-related files from archives. +tests/ export-ignore +phpstan* export-ignore diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 22bfa1e..137caa3 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -4,9 +4,9 @@ on: push: branches: - main + - support/* pull_request: - branches: - - main + workflow_dispatch: jobs: php: diff --git a/.gitignore b/.gitignore index 34d585a..681b17e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,5 @@ -# Exclude all hidden files -.* - -# Except those related to Git (and GitHub) -!.git* - -# Exclude files from composer install -vendor/ +# Ignore Composer installation artifacts; composer.lock is intentionally +# excluded as this is a library - applications depending on this package +# manage their own lock file. +/vendor/ composer.lock diff --git a/composer.json b/composer.json index 5348316..1522780 100644 --- a/composer.json +++ b/composer.json @@ -1,8 +1,8 @@ { "name": "ipl/orm", - "type": "library", "description": "Icinga PHP Library - ORM", "license": "MIT", + "type": "library", "keywords": [ "sql", "database", @@ -15,19 +15,22 @@ "ipl/sql": ">=0.9.1", "ipl/stdlib": ">=0.15.0" }, - "autoload": { - "psr-4": { - "ipl\\Orm\\": "src" - } - }, "require-dev": { "ext-pdo_sqlite": "*", "ipl/sql": "dev-main", "ipl/stdlib": "dev-main" }, + "autoload": { + "psr-4": { + "ipl\\Orm\\": "src" + } + }, "autoload-dev": { "psr-4": { "ipl\\Tests\\Orm\\": "tests" } + }, + "config": { + "sort-packages": true } }