Skip to content

Commit

Permalink
github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ardabeyazoglu committed Jan 30, 2024
1 parent d06af11 commit ec30b83
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,28 @@
name: continuous integration
name: CI
run-name: continuous integration actions
on: [push]
jobs:
CodeCoverage:
runs-on: ubuntu-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- 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_version: 8.3
php_extensions: xdebug
args: tests --coverage-clover ./coverage.xml

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- run: echo "🍏 This job's status is ${{ job.status }}."
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# php-retention

[![codecov](https://codecov.io/gh/ardabeyazoglu/php-retention/graph/badge.svg?token=5TE2OKaIPT)](https://codecov.io/gh/ardabeyazoglu/php-retention)

A simple but handy php library to apply retention policy to files before deleting, archiving or anything that is possible with a custom callback.
A typical example would be backup archiving based on custom policies such as "keep last 7 daily, 2 weekly and 3 monthly backups".

Expand Down

0 comments on commit ec30b83

Please sign in to comment.