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 3f66426

Browse files
authored
Create php.yml
1 parent 6758f70 commit 3f66426

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

‎.github/workflows/php.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Validate composer.json and composer.lock
18+
run: composer validate --strict
19+
20+
- name: Cache Composer packages
21+
id: composer-cache
22+
uses: actions/cache@v2
23+
with:
24+
path: vendor
25+
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
26+
restore-keys: |
27+
${{ runner.os }}-php-
28+
- name: Install dependencies
29+
run: composer install --prefer-dist --no-progress
30+
31+
- name: Run test suite
32+
run: vendor/bin/phpunit
33+
34+
- name: phpunit-coverage-badge
35+
uses: timkrase/phpunit-coverage-badge@v1.2.0
36+

0 commit comments

Comments
(0)

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