Skip to content

Commit

Permalink
feat: #28 Add test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
t-terashima0815 committed Feb 19, 2024
1 parent 7ffab70 commit 2ab473f
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 3 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI
on: [push]
jobs:
build-test:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Install composer and dependencies
uses: php-actions/composer@v6

- name: PHPUnit Tests
uses: php-actions/phpunit@v3
env:
XDEBUG_MODE: coverage
with:
bootstrap: vendor/autoload.php
configuration: phpunit.xml
php_extensions: xdebug
args: tests --coverage-clover ./coverage.xml

- name: Upload to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
verbose: true
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
<a href="https://packagist.org/packages/graywings/php-docker-template">
<img src="https://img.shields.io/packagist/v/graywings/php-docker-template" alt="Latest Stable Version">
</a>
<p align="center">
<a href="https://packagist.org/packages/graywings/php-docker-template">
<img src="https://img.shields.io/packagist/v/graywings/php-docker-template" alt="Latest Stable Version">
</a>
<a href="https://codecov.io/gh/old-home/php-docker-template">
<img src="https://codecov.io/gh/old-home/php-docker-template/graph/badge.svg?token=GVK3IDI2Q5" alt="codecov">
</a>
</p>


# About PHP-Docker-Template

Expand Down

0 comments on commit 2ab473f

Please sign in to comment.