From bbaba6f7583b6aa787e7cb93d92ec60944f875ca Mon Sep 17 00:00:00 2001 From: Gordon Franke Date: Thu, 27 Mar 2025 14:53:38 +0100 Subject: [PATCH] feat: add CI & static analysis badges --- .github/workflows/ci.yml | 3 +++ .github/workflows/static.yml | 7 +++++-- Readme.md | 2 ++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9eece1f..3e87558 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,10 @@ name: CI on: + push: + branches: [ "master" ] pull_request: + branches: [ "master" ] jobs: build: diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index ea6822a..9402911 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -1,7 +1,10 @@ name: Static code analysis -on: [pull_request] - +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] jobs: phpstan: diff --git a/Readme.md b/Readme.md index cb35de1..389ec49 100644 --- a/Readme.md +++ b/Readme.md @@ -2,6 +2,8 @@ [![Latest Version](https://img.shields.io/github/release/php-translation/symfony-bundle.svg?style=flat-square)](https://github.com/php-translation/symfony-bundle/releases) [![Total Downloads](https://img.shields.io/packagist/dt/php-translation/symfony-bundle.svg?style=flat-square)](https://packagist.org/packages/php-translation/symfony-bundle) +[![CI](https://github.com/php-translation/symfony-bundle/actions/workflows/ci.yml/badge.svg)](https://github.com/php-translation/symfony-bundle/actions/workflows/ci.yml) +[![Static code analysis](https://github.com/php-translation/symfony-bundle/actions/workflows/static.yml/badge.svg)](https://github.com/php-translation/symfony-bundle/actions/workflows/static.yml) **Symfony integration for PHP Translation**