Skip to content

Commit

Permalink
Merge pull request #87 from marcreichel/chore/cleanup
Browse files Browse the repository at this point in the history
🧹 Cleanup
  • Loading branch information
marcreichel committed Mar 10, 2024
2 parents 3b82c97 + e18f36e commit f865e0b
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 134 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/code-quality-pr.yml

This file was deleted.

5 changes: 2 additions & 3 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ name: PHPStan
on:
push:
branches: [ main ]
paths-ignore:
- 'LICENSE'
- 'README.md'
pull_request:
branches: [ main ]

jobs:
phpstan:
Expand Down
18 changes: 0 additions & 18 deletions .github/workflows/code-style-pr.yml

This file was deleted.

5 changes: 2 additions & 3 deletions .github/workflows/code-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ name: Pint
on:
push:
branches: [ main ]
paths-ignore:
- 'LICENSE'
- 'README.md'
pull_request:
branches: [ main ]

jobs:
pint:
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ name: Code coverage

on:
push:
branches:
- main
paths-ignore:
- LICENSE
- README.md
branches: [ main ]

jobs:
build:
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ name: Deploy docs

on:
push:
branches:
- main
paths:
- docs/**/*
branches: [ main ]
paths: [ docs/**/* ]
workflow_dispatch:

jobs:
Expand Down
58 changes: 0 additions & 58 deletions .github/workflows/tests-pr.yml

This file was deleted.

12 changes: 4 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ name: Tests

on:
push:
branches:
- main
paths-ignore:
- LICENSE
- README.md
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
run-tests:
Expand All @@ -17,15 +15,13 @@ jobs:
matrix:
os: [ubuntu-latest]
php: [8.3, 8.2, 8.1]
laravel: ['8.*', '9.*', '10.*', '11.*']
laravel: ['9.*', '10.*', '11.*']
stability: [prefer-stable]
include:
- laravel: 10.*
testbench: 8.*
- laravel: 9.*
testbench: 7.*
- laravel: 8.*
testbench: 6.*
- laravel: 11.*
testbench: 9.*
exclude:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ vendor/
build/
report/
composer.lock
.phpunit.cache
.phpunit.result.cache
cghooks.lock

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"require": {
"php": "^8.1",
"ext-json": "*",
"illuminate/support": "^8.40.0|^9.0|^10.0|^11.0",
"illuminate/support": "^9.0|^10.0|^11.0",
"guzzlehttp/guzzle": "~6.0|~7.0",
"nesbot/carbon": "^2.53.1|^3.0"
},
Expand Down
26 changes: 10 additions & 16 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,25 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
executionOrder="random"
failOnWarning="true"
failOnRisky="true"
failOnEmptyTestSuite="true"
beStrictAboutOutputDuringTests="true"
verbose="true"
>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" bootstrap="vendor/autoload.php"
colors="true" executionOrder="random" failOnWarning="true" failOnRisky="true" failOnEmptyTestSuite="true"
beStrictAboutOutputDuringTests="true" cacheDirectory=".phpunit.cache">
<testsuites>
<testsuite name="IGDBLaravel Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<coverage>
<include>
<directory suffix=".php">./src</directory>
</include>
<report>
<html outputDirectory="build/coverage"/>
<text outputFile="build/coverage.txt"/>
Expand All @@ -30,6 +19,11 @@
<junit outputFile="build/report.junit.xml"/>
</logging>
<php>
<env name="IGDB_WEBHOOK_SECRET" value="secret" />
<env name="IGDB_WEBHOOK_SECRET" value="secret"/>
</php>
<source>
<include>
<directory>./src</directory>
</include>
</source>
</phpunit>

0 comments on commit f865e0b

Please sign in to comment.