Skip to content

Commit d9d6521

Browse files
authored
Merge pull request #3 from alexpts/github-ci
move CI to github actions
2 parents 6e55935 + aa2d1b3 commit d9d6521

File tree

4 files changed

+42
-48
lines changed

4 files changed

+42
-48
lines changed

.github/workflows/phpunit.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# https://docs.github.com/en/actions/learn-github-actions/understanding-github-actions
2+
3+
name: phpunit
4+
5+
on:
6+
pull_request: {}
7+
release: {}
8+
push:
9+
branches: [ master ]
10+
11+
jobs:
12+
tests:
13+
name: unit tests
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
- uses: php-actions/composer@v6
19+
with:
20+
version: 2
21+
22+
- name: phpiunit tests
23+
uses: php-actions/phpunit@v3
24+
with:
25+
configuration: ./test/phpunit.xml
26+
php_extensions: pcov
27+
28+
- name: coverage monitor
29+
uses: slavcodev/[email protected]
30+
with:
31+
github_token: ${{ secrets.GITHUB_TOKEN }}
32+
coverage_path: test/clover.xml
33+
comment_footer: false
34+
35+
- name: Upload coverage to Codecov
36+
uses: codecov/codecov-action@v3
37+
with:
38+
token: ${{ secrets.CODECOV_TOKEN }}
39+
files: test/clover.xml
40+
name: github-ci
41+
verbose: true

.scrutinizer.yml

-31
This file was deleted.

.travis.yml

-12
This file was deleted.

README.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# Symfony DI component loader
22

3-
[![Build Status](https://travis-ci.org/alexpts/php-symfony-di-loader.svg?branch=master)](https://travis-ci.org/alexpts/php-symfony-di-loader)
4-
[![Code Coverage](https://scrutinizer-ci.com/g/alexpts/php-symfony-di-loader/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/alexpts/php-symfony-di-loader/?branch=master)
5-
[![Code Climate](https://codeclimate.com/github/alexpts/php-symfony-di-loader/badges/gpa.svg)](https://codeclimate.com/github/alexpts/php-symfony-di-loader)
6-
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/alexpts/php-symfony-di-loader/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/alexpts/php-symfony-di-loader/?branch=master)
7-
3+
[![codecov](https://codecov.io/gh/alexpts/php-symfony-di-loader/branch/master/graph/badge.svg?token=14L6IJA5UE)](https://codecov.io/gh/alexpts/php-symfony-di-loader)
84

95
Simple loader for symfony [DependencyInjection component]( https://symfony.com/doc/current/components/dependency_injection.html)
106

0 commit comments

Comments
 (0)