Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
Switched to Github actions (#1)
Browse files Browse the repository at this point in the history
Switched to Github actions
  • Loading branch information
Radovan Kepák authored Mar 30, 2021
1 parent c291525 commit 4ffbae9
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 44 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Static Analysis (only informative)

on:
push:
branches:
- master

jobs:
phpstan:
name: PHPStan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: 8.0
coverage: none

- run: composer install --no-progress --prefer-dist
- run: composer phpstan -- --no-progress
continue-on-error: true # is only informative
42 changes: 42 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Tests

on: [push, pull_request]

jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['8.0', '7.4']

fail-fast: false

name: PHP ${{ matrix.php }} tests
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none

- run: composer install --no-progress --prefer-dist
- run: vendor/bin/tester tests -s -C
- if: failure()
uses: actions/upload-artifact@v2
with:
name: output
path: tests/**/output


lowest_dependencies:
name: Lowest Dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: 8.0
coverage: none

- run: composer update --no-progress --prefer-dist --prefer-lowest --prefer-stable
- run: vendor/bin/tester tests -s -C
42 changes: 0 additions & 42 deletions .travis.yml

This file was deleted.

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
MallGroup/Monolog
======

[![Build Status](https://travis-ci.org/mallgroup/monolog.svg?branch=master)](https://travis-ci.org/mallgroup/monolog)
[![Build Status](https://github.com/mallgroup/monolog/workflows/Tests/badge.svg?branch=master)](https://travis-ci.org/mallgroup/monolog)
[![Downloads this Month](https://img.shields.io/packagist/dm/mallgroup/monolog.svg)](https://packagist.org/packages/mallgroup/monolog)
[![Latest stable](https://img.shields.io/packagist/v/mallgroup/monolog.svg)](https://packagist.org/packages/mallgroup/monolog)
[![Coverage Status](https://coveralls.io/repos/github/mallgroup/monolog/badge.svg?branch=master)](https://coveralls.io/github/mallgroup/monolog?branch=master)

Integration of [Monolog](https://github.com/Seldaek/monolog) into Nette Framework
This is Fork of [Kdyby/Monolog](https://github.com/kdyby/monolog), licensed under new-BSD license
Expand Down
4 changes: 4 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@
"dev-master": "1.0-dev"
}
},
"scripts": {
"phpstan": "phpstan analyse",
"tester": "tester tests -s"
},
"replace": {
"kdyby/rabbitmq": "*"
}
Expand Down
5 changes: 5 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
parameters:
level: 8

paths:
- src

0 comments on commit 4ffbae9

Please sign in to comment.