Skip to content

Commit

Permalink
PG-18 (#6)
Browse files Browse the repository at this point in the history
v73.0.0
  • Loading branch information
gammamatrix authored Nov 27, 2023
1 parent ecf01b7 commit 414e2f7
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 5 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Playground tests

on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]

permissions:
contents: write
pull-requests: write
issues: write
repository-projects: write

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: php-actions/composer@v6
- uses: php-actions/phpunit@v3
env:
XDEBUG_MODE: coverage
with:
php_extensions: xdebug
coverage_clover: clover.xml
- name: Make code coverage badge
uses: timkrase/[email protected]
with:
coverage_badge_path: output/coverage.svg
push_badge: false
- name: Git push to image-data branch
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: ./output
publish_branch: image-data
github_token: ${{ secrets.GITHUB_TOKEN }}
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Playground

![Test Coverage](https://raw.githubusercontent.com/gammamatrix/playground/image-data/coverage.svg)
![Playground CI Workflow](https://github.com/gammamatrix/playground/actions/workflows/ci.yml/badge.svg?)

This is the base package for Playground.

This package provides controllers, policies, migrations, models, requests, views and more for building [Laravel](https://laravel.com/docs/10.x) packages.
Expand Down
10 changes: 5 additions & 5 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
<testsuite name="Unit">
<directory>tests/Unit</directory>
</testsuite>
<!-- <testsuite name="Feature"> -->
<!-- <directory>tests/Feature</directory> -->
<!-- </testsuite> -->
<testsuite name="Feature">
<directory>tests/Feature</directory>
</testsuite>
</testsuites>
<coverage
<!-- <coverage
includeUncoveredFiles="true"
pathCoverage="false"
ignoreDeprecatedCodeUnits="true"
Expand All @@ -45,7 +45,7 @@
<text outputFile="tests/logs/coverage.txt" showUncoveredFiles="false" showOnlySummary="true"/>
<xml outputDirectory="tests/logs/xml"/>
</report>
</coverage>
</coverage> -->
<logging>
<junit outputFile="tests/logs/junit.xml"/>
<teamcity outputFile="tests/logs/teamcity.txt"/>
Expand Down

0 comments on commit 414e2f7

Please sign in to comment.