Skip to content

Commit

Permalink
feat: github actions tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JellyBellyDev committed Mar 15, 2021
1 parent 68a4a3d commit 619ecf9
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on:
push:
pull_request:

jobs:
tests:
runs-on: ubuntu-latest

container: jellybellydev/ci-cd-theory-into-practice:latest

name: "CI⚡CD: the theory put into practice"

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install dependencies
run: composer install

- name: Check php-cs-fixer
run: vendor/bin/php-cs-fixer fix --verbose --diff --dry-run

- name: Lint yaml config
- run: bin/console lint:yaml config

- name: Phpunit
- run: XDEBUG_MODE=coverage bin/phpunit --colors=never --coverage-text

- name: Psalm
- run: vendor/bin/psalm
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
![Logo](./stuff/ci-cd-logo-250.png)

# CI⚡CD: the theory put into practice
GitLab:
[![pipeline status](https://gitlab.com/JellyBellyDev/ci-cd-theory-into-practice/badges/master/pipeline.svg)](https://gitlab.com/JellyBellyDev/ci-cd-theory-into-practice/-/commits/master)
[![coverage report](https://gitlab.com/JellyBellyDev/ci-cd-theory-into-practice/badges/master/coverage.svg)](https://gitlab.com/JellyBellyDev/ci-cd-theory-into-practice/-/commits/master)
[![coverage report](https://gitlab.com/JellyBellyDev/ci-cd-theory-into-practice/badges/master/coverage.svg)](https://gitlab.com/JellyBellyDev/ci-cd-theory-into-practice/-/commits/master)
GitHub:
![CI](https://github.com/JellyBellyDev/ci-cd-theory-into-practice/workflows/CI/badge.svg)

> This is a sample repository to show a possible configuration of a GitLab pipeline and deploy with Ansible for a software written in php with Symfony framework.
Expand Down

0 comments on commit 619ecf9

Please sign in to comment.