Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 43928a7

Browse files
chore: Update workflows (#17)
1 parent 68efbae commit 43928a7

File tree

4 files changed

+83
-14
lines changed

4 files changed

+83
-14
lines changed

‎.github/workflows/coding-standards.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: "Check Coding Standards"
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
coding-standards:
8+
name: "Check Coding Standards"
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Setup PHP
17+
uses: shivammathur/setup-php@v2
18+
with:
19+
php-version: "7.4"
20+
tools: composer:v2, cs2pr
21+
22+
- name: Install dependencies
23+
run: composer require phpcsstandards/php_codesniffer --no-interaction --no-progress
24+
25+
- name: "Run phpcs"
26+
run: vendor/bin/phpcs -q --standard=PSR2 classes/ tests/ --report=checkstyle | cs2pr

‎.github/workflows/phpmd.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: "Check phpmd"
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
coding-standards:
8+
name: "Check phpmd"
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Setup PHP
17+
uses: shivammathur/setup-php@v2
18+
with:
19+
php-version: "7.4"
20+
tools: composer:v2
21+
22+
- name: Install dependencies
23+
run: composer require phpmd/phpmd --no-interaction --no-progress
24+
25+
- name: Run phpmd
26+
run: vendor/bin/phpmd classes/ text cleancode,codesize,controversial,design,naming,unusedcode

‎.github/workflows/test-flight.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: "Check test-flight"
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
coding-standards:
8+
name: "Check test-flight"
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Setup PHP
17+
uses: shivammathur/setup-php@v2
18+
with:
19+
php-version: "7.4"
20+
tools: composer:v2
21+
ini-values: "zend.assertions=1"
22+
23+
- name: Install dependencies
24+
run: composer require cundd/test-flight --no-interaction --no-progress
25+
26+
- name: Run test-flight
27+
run: |
28+
vendor/bin/test-flight README.md
29+
vendor/bin/test-flight classes/

‎.github/workflows/tests.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ jobs:
127127
name: Mockery ${{ matrix.mockery-version }} on PHP ${{ matrix.php-version }}
128128
steps:
129129
- name: Checkout
130-
uses: actions/checkout@v3
130+
uses: actions/checkout@v4
131131

132132
- name: Install PHP
133133
uses: shivammathur/setup-php@v2
@@ -136,19 +136,7 @@ jobs:
136136
ini-values: zend.assertions=1
137137

138138
- name: Install Dependencies
139-
run: composer require mockery/mockery:~${{ matrix.mockery-version }} squizlabs/php_codesniffer phpmd/phpmd cundd/test-flight
139+
run: composer require mockery/mockery:~${{ matrix.mockery-version }} --no-interaction --no-progress
140140

141141
- name: PHPUnit
142142
run: vendor/bin/phpunit
143-
144-
- name: Test Flight
145-
if: matrix.php-version != '8.1' && matrix.php-version != '8.2' && matrix.php-version != '8.3'
146-
run: |
147-
vendor/bin/test-flight README.md
148-
vendor/bin/test-flight classes/
149-
150-
- name: PHPCS
151-
run: vendor/bin/phpcs --standard=PSR2 classes/ tests/
152-
153-
- name: PHPMD
154-
run: vendor/bin/phpmd classes/ text cleancode,codesize,controversial,design,naming,unusedcode

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /