Skip to content

Commit

Permalink
CI: new workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x committed Sep 13, 2022
1 parent fee1d14 commit b8172a1
Show file tree
Hide file tree
Showing 5 changed files with 95 additions and 271 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/codesniffer.yml
@@ -0,0 +1,15 @@
name: "Codesniffer"

on:
pull_request:

push:
branches: ["*"]

schedule:
- cron: "0 8 * * 1"

jobs:
codesniffer:
name: "Codesniffer"
uses: contributte/.github/.github/workflows/codesniffer.yml@v1
271 changes: 0 additions & 271 deletions .github/workflows/main.yaml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/phpstan.yml
@@ -0,0 +1,31 @@
name: "Phpstan"

on:
pull_request:

push:
branches: ["*"]

schedule:
- cron: "0 8 * * 1"

jobs:
phpstan81:
name: "Phpstan"
uses: contributte/.github/.github/workflows/phpstan.yml@v1
with:
php: "8.1"


phpstan80:
name: "Phpstan"
uses: contributte/.github/.github/workflows/phpstan.yml@v1
with:
php: "8.0"

lower:
name: "Nette Tester"
uses: contributte/.github/.github/workflows/phpstan.yml@v1
with:
php: "7.2"
composer: "composer update --no-interaction --no-progress --prefer-dist --prefer-stable --prefer-lowest"
30 changes: 30 additions & 0 deletions .github/workflows/tests.yml
@@ -0,0 +1,30 @@
name: "Nette Tester"

on:
pull_request:

push:
branches: [ "*" ]

schedule:
- cron: "0 8 * * 1"

jobs:
test81:
name: "Nette Tester"
uses: contributte/.github/.github/workflows/nette-tester.yml@v1
with:
php: "8.1"

test80:
name: "Nette Tester"
uses: contributte/.github/.github/workflows/nette-tester.yml@v1
with:
php: "8.0"

lower:
name: "Nette Tester"
uses: contributte/.github/.github/workflows/nette-tester.yml@v1
with:
php: "7.2"
composer: "composer update --no-interaction --no-progress --prefer-dist --prefer-stable --prefer-lowest"
19 changes: 19 additions & 0 deletions ruleset.xml
@@ -0,0 +1,19 @@
<?xml version="1.0"?>
<ruleset>
<!-- Contributte Coding Standard -->
<rule ref="./vendor/ninjify/coding-standard/contributte.xml"/>

<!-- Specific rules -->
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName">
<properties>
<property name="rootNamespaces" type="array">
<element key="src" value="Contributte\GopayInline"/>
<element key="tests/cases" value="Tests\Cases"/>
<element key="tests/fixtures" value="Tests\Fixtures"/>
</property>
</properties>
</rule>

<!-- Exclude folders -->
<exclude-pattern>/tests/tmp</exclude-pattern>
</ruleset>

0 comments on commit b8172a1

Please sign in to comment.