From 7d2fd17a83c3ce09428f4f48ce8e3333a3fdd794 Mon Sep 17 00:00:00 2001
From: Wilmer Arambula <42547589+terabytesoftw@users.noreply.github.com>
Date: Sun, 2 Jul 2023 12:07:30 -0400
Subject: [PATCH] Update template. (#9)
---
.gitattributes | 23 ++++++++-----
.github/workflows/build.yml | 4 ++-
.github/workflows/dependency-check.yml | 2 +-
.github/workflows/mutation.yml | 6 ++--
.github/workflows/static.yml | 2 +-
.gitignore | 6 ++--
README.md | 46 ++++++--------------------
composer.json | 8 ++---
docs/testing.md | 35 ++++++++++++++++++++
phpunit.xml.dist | 46 +++++++++++---------------
10 files changed, 93 insertions(+), 85 deletions(-)
create mode 100644 docs/testing.md
diff --git a/.gitattributes b/.gitattributes
index 7c3b027..65a6a4e 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1,5 +1,5 @@
# Autodetect text files
-* text=auto
+* text=auto eol=lf
# ...Unless the name matches the following overriding patterns
@@ -21,14 +21,19 @@
*.gif binary
*.ttf binary
-# Ignore some meta files when creating an archive of this repository
-/.github export-ignore
-/.editorconfig export-ignore
-/.gitattributes export-ignore
-/.gitignore export-ignore
-/.scrutinizer.yml export-ignore
-/docs export-ignore
-
# Avoid merge conflicts in CHANGELOG
# https://about.gitlab.com/2015/02/10/gitlab-reduced-merge-conflicts-by-90-percent-with-changelog-placeholders/
/CHANGELOG.md merge=union
+
+# Exclude files from the archive
+/.gitattributes export-ignore
+/.github export-ignore
+/.gitignore export-ignore
+/.styleci.yml export-ignore
+/codeception.yml export-ignore
+/composer-require-checker.json export-ignore
+/docs export-ignore
+/phpunit.xml.dist export-ignore
+/psalm.xml export-ignore
+/rector.php export-ignore
+/tests export-ignore
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index f12ea5e..812f3db 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -23,7 +23,9 @@ name: build
jobs:
phpunit:
- uses: yiisoft/actions/.github/workflows/phpunit.yml@master
+ uses: php-forge/actions/.github/workflows/phpunit.yml@main
+ secrets:
+ CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
os: >-
['ubuntu-latest', 'windows-latest']
diff --git a/.github/workflows/dependency-check.yml b/.github/workflows/dependency-check.yml
index fba3d14..5b57355 100644
--- a/.github/workflows/dependency-check.yml
+++ b/.github/workflows/dependency-check.yml
@@ -25,7 +25,7 @@ name: dependency-check
jobs:
composer-require-checker:
- uses: yiisoft/actions/.github/workflows/composer-require-checker.yml@master
+ uses: php-forge/actions/.github/workflows/composer-require-checker.yml@main
with:
os: >-
['ubuntu-latest']
diff --git a/.github/workflows/mutation.yml b/.github/workflows/mutation.yml
index c1aca98..ef6929b 100644
--- a/.github/workflows/mutation.yml
+++ b/.github/workflows/mutation.yml
@@ -21,11 +21,11 @@ name: mutation test
jobs:
mutation:
- uses: yiisoft/actions/.github/workflows/roave-infection.yml@master
+ uses: php-forge/actions/.github/workflows/roave-infection.yml@main
+ secrets:
+ STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
with:
os: >-
['ubuntu-latest']
php: >-
['8.1']
- secrets:
- STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml
index 301ab7c..2dbe430 100644
--- a/.github/workflows/static.yml
+++ b/.github/workflows/static.yml
@@ -23,7 +23,7 @@ name: static analysis
jobs:
psalm:
- uses: yiisoft/actions/.github/workflows/psalm.yml@master
+ uses: php-forge/actions/.github/workflows/psalm.yml@main
with:
os: >-
['ubuntu-latest']
diff --git a/.gitignore b/.gitignore
index b3e357c..33918c0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,14 +13,12 @@
# phpunit
phpunit.phar
-/phpunit.xml
.phpunit.result.cache
+.phpunit.cache
+phpunit.xlm
#yii3 config packages
/config/packages
# windows thumbnail cache
Thumbs.db
-
-# package-lock.json
-package-lock.json
diff --git a/README.md b/README.md
index 21e5186..4a0e65d 100644
--- a/README.md
+++ b/README.md
@@ -6,45 +6,19 @@