Skip to content

Commit

Permalink
Update master to output generated at
Browse files Browse the repository at this point in the history
  • Loading branch information
abenevaut committed Nov 23, 2024
1 parent 412d089 commit 7de27c2
Show file tree
Hide file tree
Showing 935 changed files with 10,212 additions and 8,093 deletions.
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.yml]
indent_style = space
indent_size = 2
7 changes: 7 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
* text=auto
/.github export-ignore
.styleci.yml export-ignore
.scrutinizer.yml export-ignore
BACKERS.md export-ignore
CONTRIBUTING.md export-ignore
CHANGELOG.md export-ignore
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @abenevaut
9 changes: 9 additions & 0 deletions .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Be free to fork this project.

No contribution is accepted on this READ ONLY repository.
Please visit the [abenevaut/opensource](https://github.com/abenevaut/opensource) to contribute.

Roadmap: https://github.com/users/abenevaut/projects/9

All inspired code or re-used code have to be licensed to GNU GPLv3.
Please, take care about licensed projects you can't re-use.
4 changes: 4 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
No contribution is accepted on this READ ONLY repository.
Please visit the [abenevaut/opensource](https://github.com/abenevaut/opensource) to contribute.

Roadmap: https://github.com/users/abenevaut/projects/9
4 changes: 4 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
No contribution is accepted on this READ ONLY repository.
Please visit the [abenevaut/opensource](https://github.com/abenevaut/opensource) to contribute.

Roadmap: https://github.com/users/abenevaut/projects/9
4 changes: 4 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
No contribution is accepted on this READ ONLY repository.
Please visit the [abenevaut/opensource](https://github.com/abenevaut/opensource) to contribute.

Roadmap: https://github.com/users/abenevaut/projects/9
13 changes: 13 additions & 0 deletions .github/workflows/close-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Close PR

on:
pull_request_target:
types: [opened]

jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: superbrothers/close-pull-request@v3
with:
comment: "No contribution is accepted on this READ ONLY repository."
59 changes: 59 additions & 0 deletions .github/workflows/phpunit-slicer-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: phpunit-slicer-release

on:
release:
types: [ created ]

env:
php_version: 8.3
node_version: lts/iron

jobs:

publish-binaries:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./builds
permissions:
contents: write
concurrency:
group: phpunit-slicer-publish-binaries-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
steps:

- name: Checkout project
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Get current release tag
id: branch-name
run: echo "SOURCE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT

- name: add assets to release
run: |
sha512sum phpunit-slicer > phpunit-slicer.sha512sum
gh release upload ${{ steps.branch-name.outputs.SOURCE_TAG }} phpunit-slicer.sha512sum
gh release upload ${{ steps.branch-name.outputs.SOURCE_TAG }} phpunit-slicer
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

publish-docs:
runs-on: ubuntu-latest
concurrency:
group: phpunit-slicer-publish-docs-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
steps:

- name: Checkout project
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Publish to wiki
uses: SwiftDocOrg/github-wiki-publish-action@v1
with:
path: "docs"
env:
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.ABENEVAUT_GITHUB_TOKEN }}
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/vendor
/.idea
/.vscode
/.vagrant
.phpunit.result.cache
phpunit.xml.test
phpunit.xml
coverage
49 changes: 2 additions & 47 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,51 +1,6 @@
# PHPUnit-slicer
# phpunit-slicer

Tool to slice PHPUnit tests files to tests suites.

- [Available on Packagist.org - abenevaut/phpunit-slicer](https://packagist.org/packages/abenevaut/phpunit-slicer)

![how-to](https://raw.githubusercontent.com/abenevaut/phpunit-slicer/master/demo.gif)

## Install

### In PHP project
```shell
composer require --dev abenevaut/phpunit-slicer
```

#### Usage

```shell
vendor/bin/phpunit-slicer slice 4 ./phpunit.xml.dist ./phpunit.xml ./tests
```

### Globally
```shell
composer global require abenevaut/phpunit-slicer
```

#### Usage
```shell
phpunit-slicer slice 4 ./phpunit.xml.dist ./phpunit.xml ./tests
```

### Use cases
```shell
vendor/bin/phpunit --testsuite sliced-testsuite-0 --configuration phpunit.xml
vendor/bin/pest --testsuite sliced-testsuite-1 --configuration phpunit.xml
php artisan test --testsuite sliced-testsuite-2 --configuration phpunit.xml
php laravel-zero-project test --testsuite sliced-testsuite-3 --configuration phpunit.xml
```

- [Real use case with Github Actions](https://github.com/abenevaut/phpunit-slicer/wiki)

## Build
```shell
php phpunit-slicer app:build phpunit-slicer
php phpunit-slicer app:build phpunit-slicer --build-version=0.0.X
```
[Wiki](https://github.com/abenevaut/phpunit-slicer/wiki)

## Licensing

- Credits to [tailwindtoolbox](https://github.com/tailwindtoolbox/Minimal-Blog) for the HTML template
- The Laravel Zero is open-sourced software licensed under the [MIT license](https://opensource.org/license/mit/).
Empty file added app/Commands/.gitkeep
Empty file.
Binary file modified builds/phpunit-slicer
Binary file not shown.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Tool to slice PHPUnit tests files to tests suites.",
"keywords": ["phpunit", "slice", "tests"],
"type": "project",
"license": "GPL-3.0-only",
"license": "MIT",
"homepage": "https://github.com/abenevaut/opensource",
"support": {
"issues": "https://github.com/abenevaut/opensource/issues",
Expand Down
Loading

0 comments on commit 7de27c2

Please sign in to comment.