Skip to content

Commit

Permalink
feat: build action and badges
Browse files Browse the repository at this point in the history
  • Loading branch information
vfunin committed Jul 29, 2023
1 parent 287a633 commit 73a165f
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build

on:
push:
branches: [ "master", "main" ]
pull_request:

jobs:
pest:
runs-on: ubuntu-latest
name: Code coverage complete run
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
tools: composer:v2
coverage: xdebug

- name: Install Dependencies
run: composer install --no-interaction --prefer-dist --optimize-autoloader

- name: Validate composer.json and composer.lock
run: composer validate --strict

- name: Tests
run: ./vendor/bin/pest
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Total Downloads](https://poser.pugx.org/vfunin/dev-ci-kit/downloads.png)](https://packagist.org/packages/vfunin/dev-ci-kit)
[![Build status](https://github.com/vfunin/dev-ci-kit/workflows/build/badge.svg)](https://github.com/vfunin/dev-ci-kit/actions?query=workflow%3Abuild)
[![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fvfunin%2Fdev-ci-kit%2Fmaster)](https://dashboard.stryker-mutator.io/reports/github.com/vfunin/dev-ci-kit/master)
[![codecov](https://codecov.io/gh/vfunin/dev-ci-kit/branch/master/graph/badge.svg?token=ER6NMU4XDO)](https://codecov.io/gh/vfunin/dev-ci-kit)
[![psalm-level](https://shepherd.dev/github/vfunin/dev-ci-kit/level.svg)](https://shepherd.dev/github/vfunin/dev-ci-kit)
Expand Down

0 comments on commit 73a165f

Please sign in to comment.