Skip to content

Commit 5437713

Browse files
Merged GitHub Actions
1 parent b836454 commit 5437713

File tree

7 files changed

+43
-129
lines changed

7 files changed

+43
-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: 8 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:
@@ -9,9 +10,13 @@ jobs:
910
fail-fast: true
1011
matrix:
1112
php: [ "7.3", "7.4", "8.0", "8.1" ]
12-
laravel: [ "8.0" ]
13+
laravel: [ "6.0", "7.0", "8.0", "9.0" ]
14+
exclude:
15+
- laravel: "6.0"
16+
php: "8.1"
17+
1318

14-
name: PHP ${{ matrix.php }}
19+
name: PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }}
1520

1621
steps:
1722
- 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)