Skip to content

Commit 652fef1

Browse files
author
Andrey Helldar
authored
Merge pull request #29 from TheDragonCode/2.x
Merged GitHub Actions
2 parents 3a54080 + 22776df commit 652fef1

File tree

7 files changed

+52
-129
lines changed

7 files changed

+52
-129
lines changed

.github/workflows/code-style.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: code-style
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
permissions: write-all
8+
9+
jobs:
10+
check:
11+
if: ${{ ! (github.event_name == 'push' && github.ref == 'refs/heads/main') }}
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v3
18+
19+
- name: Checking PHP Syntax
20+
uses: TheDragonCode/[email protected]
21+
22+
fix:
23+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
24+
25+
runs-on: ubuntu-latest
26+
27+
steps:
28+
- name: Checkout code
29+
uses: actions/checkout@v3
30+
31+
- name: Checking PHP Syntax
32+
uses: TheDragonCode/[email protected]
33+
with:
34+
github_token: ${{ secrets.COMPOSER_TOKEN }}
35+
fix: true

.github/workflows/laravel-6.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/laravel-7.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/laravel-9.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/laravel-8.yml renamed to .github/workflows/laravel.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
name: "Laravel 8"
1+
name: laravel
2+
23
on: [ push ]
34

45
jobs:
@@ -8,10 +9,23 @@ jobs:
89
strategy:
910
fail-fast: true
1011
matrix:
12+
laravel: [ "6.0", "7.0", "8.0", "9.0" ]
1113
php: [ "7.3", "7.4", "8.0", "8.1" ]
12-
laravel: [ "8.0" ]
14+
exclude:
15+
- laravel: "6.0"
16+
php: "8.1"
17+
18+
- laravel: "7.0"
19+
php: "8.1"
20+
21+
- laravel: "9.0"
22+
php: "7.3"
23+
24+
- laravel: "9.0"
25+
php: "7.4"
26+
1327

14-
name: PHP ${{ matrix.php }}
28+
name: ${{ matrix.laravel }}, PHP ${{ matrix.php }}
1529

1630
steps:
1731
- name: Checkout code

.github/workflows/lint-check.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

.github/workflows/lint-fixer.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)