Skip to content

Commit

Permalink
GitHub Actions: use re-usable workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Ondráček <ondracek.roman@centrum.cz>
  • Loading branch information
Roman3349 committed Oct 29, 2022
1 parent bc59956 commit 018a1c3
Show file tree
Hide file tree
Showing 9 changed files with 113 additions and 300 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
17 changes: 17 additions & 0 deletions .github/workflows/coverage.yml
@@ -0,0 +1,17 @@
name: "Coverage"

on:
pull_request:

push:
branches: ["*"]

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

jobs:
coverage:
name: "Nette Tester"
uses: contributte/.github/.github/workflows/nette-tester-coverage.yml@v1
with:
php: "7.4"
285 changes: 0 additions & 285 deletions .github/workflows/main.yaml

This file was deleted.

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

on:
pull_request:

push:
branches: ["*"]

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

jobs:
phpstan:
name: "PHPStan"
uses: contributte/.github/.github/workflows/phpstan.yml@v1
42 changes: 42 additions & 0 deletions .github/workflows/tests.yml
@@ -0,0 +1,42 @@
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"

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

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

test72:
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"
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -7,4 +7,5 @@

# Tests
/temp
/coverage.html
/coverage.xml

0 comments on commit 018a1c3

Please sign in to comment.