Skip to content

Commit 457edc8

Browse files
Revert "ci: remove coveritup (#395)"
This reverts commit 3b7c78e.
1 parent fef812b commit 457edc8

File tree

2 files changed

+86
-0
lines changed

2 files changed

+86
-0
lines changed

.github/workflows/coveritup.yml

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
on:
2+
- push
3+
4+
name: "CoveritUp"
5+
6+
jobs:
7+
test:
8+
runs-on: ubuntu-latest
9+
10+
strategy:
11+
matrix:
12+
php: [8.3]
13+
name: PHP ${{ matrix.php }}
14+
15+
steps:
16+
- name: Cancel Previous Runs
17+
uses: styfle/[email protected]
18+
with:
19+
access_token: ${{ github.token }}
20+
21+
- name: Checkout
22+
uses: actions/checkout@v2
23+
24+
- name: Install tools
25+
run: |
26+
curl -sLk https://raw.githubusercontent.com/kevincobain2000/cover-totalizer/master/install.sh | sh
27+
28+
- uses: actions/setup-node@v3
29+
with:
30+
node-version: ${{ matrix.node-versions }}
31+
32+
- name: Install PHP with extensions
33+
uses: shivammathur/setup-php@v2
34+
with:
35+
coverage: pcov
36+
extensions: intl, gd, zip, pdo, sqlite, pdo_sqlite, dom, curl, libxml, mbstring, fileinfo, exif, iconv
37+
ini-values: memory_limit=-1,disable_functions="",pcov.exclude="~(vendor|tests|node_modules)~",pcov.directory="./"
38+
php-version: ${{ matrix.php }}
39+
tools: composer:v2
40+
41+
- name: NPM Install Time
42+
uses: kevincobain2000/action-coveritup@v2
43+
with:
44+
type: npm-install-time
45+
metric: sec
46+
command: cd ui/; npm install
47+
record: runtime
48+
49+
- name: Composer Install Time
50+
uses: kevincobain2000/action-coveritup@v2
51+
with:
52+
type: composer-install-time
53+
metric: sec
54+
command: composer install
55+
record: runtime
56+
57+
- name: PHPUNIT Tests
58+
uses: kevincobain2000/action-coveritup@v2
59+
with:
60+
type: phpunit-run-time
61+
metric: sec
62+
command: ./vendor/bin/phpunit --coverage-clover=coverage.xml
63+
record: runtime
64+
65+
- name: Code Coverage
66+
uses: kevincobain2000/action-coveritup@v2
67+
with:
68+
type: phpunit-coverage
69+
metric: '%'
70+
command: ./cover-totalizer coverage.xml
71+
72+
- name: "Comment on PR"
73+
uses: kevincobain2000/action-coveritup@v2
74+
with:
75+
pr_comment: true
76+
diff_types: phpunit-coverage

README.md

+10
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@
2424
<img src="https://github.com/rakutentech/laravel-request-docs/actions/workflows/phptest.yml/badge.svg?branch=master" alt="CI PHP">
2525
</p>
2626

27+
![npm-install-time](https://coveritup.app/badge?org=rakutentech&repo=laravel-request-docs&branch=master&type=npm-install-time)
28+
![composer-install-time](https://coveritup.app/badge?org=rakutentech&repo=laravel-request-docs&branch=master&type=composer-install-time)
29+
![phpunit-run-time](https://coveritup.app/badge?org=rakutentech&repo=laravel-request-docs&branch=master&type=phpunit-run-time)
30+
![phpunit-coverage](https://coveritup.app/badge?org=rakutentech&repo=laravel-request-docs&branch=master&type=phpunit-coverage)
31+
32+
![npm-install-time](https://coveritup.app/chart?org=rakutentech&repo=laravel-request-docs&branch=master&type=npm-install-time&theme=light&line=fill&width=150&height=150&output=svg&line=fill)
33+
![composer-install-time](https://coveritup.app/chart?org=rakutentech&repo=laravel-request-docs&branch=master&type=composer-install-time&theme=light&line=fill&width=150&height=150&output=svg&line=fill)
34+
![phpunit-run-time](https://coveritup.app/chart?org=rakutentech&repo=laravel-request-docs&branch=master&type=phpunit-run-time&theme=light&line=fill&width=150&height=150&output=svg&line=fill)
35+
![phpunit-coverage](https://coveritup.app/chart?org=rakutentech&repo=laravel-request-docs&branch=master&type=phpunit-coverage&theme=light&line=fill&width=150&height=150&output=svg&line=fill)
36+
2737
**Fast** Install on any Laravel Project
2838

2939
**Hassle Free** Auto Generate API Documentation for request rules and parameters

0 commit comments

Comments
 (0)