Skip to content
This repository has been archived by the owner on Mar 6, 2022. It is now read-only.

Maestro is adding Github Actions #2

Merged
merged 1 commit into from
Dec 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
113 changes: 113 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
name: "CI"

on:
pull_request:
push:
branches:
- 'master'

env:
fail-fast: true
TZ: "Europe/Paris"

jobs:
php-cs-fixer:
name: "PHP-CS-Fixer (${{ matrix.php-version }})"

runs-on: "ubuntu-latest"

strategy:
matrix:
php-version:
- '7.3'

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

-
name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
extensions: "${{ env.REQUIRED_PHP_EXTENSIONS }}"
php-version: "${{ matrix.php-version }}"
tools: composer:v2

-
name: "Composer install"
uses: "ramsey/composer-install@v1"
with:
composer-options: "--no-scripts"

-
name: "Run friendsofphp/php-cs-fixer"
run: "vendor/bin/php-cs-fixer fix --dry-run --diff --verbose"
phpstan:
name: "PHPStan (${{ matrix.php-version }})"

runs-on: "ubuntu-latest"

strategy:
matrix:
php-version:
- '7.3'

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

-
name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
extensions: "${{ env.REQUIRED_PHP_EXTENSIONS }}"
php-version: "${{ matrix.php-version }}"
tools: composer:v2

-
name: "Composer install"
uses: "ramsey/composer-install@v1"
with:
composer-options: "--no-scripts"

-
name: "Run PHPStan"
run: "vendor/bin/phpstan analyse"
phpunit:
name: "PHPUnit (${{ matrix.php-version }})"

runs-on: "ubuntu-latest"

strategy:
matrix:
php-version:
- '7.3'
- '7.4'

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

-
name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
extensions: "${{ env.REQUIRED_PHP_EXTENSIONS }}"
php-version: "${{ matrix.php-version }}"
tools: composer:v2

-
name: "Composer install"
uses: "ramsey/composer-install@v1"
with:
composer-options: "--no-scripts"

-
name: "Run PHPUnit"
run: "vendor/bin/phpunit"
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
File Path Resolver
==================

[![Build Status](https://travis-ci.org/phpactor/file-path-resolver.svg?branch=master)](https://travis-ci.org/phpactor/file-path-resolver)
![CI](https://github.com/phpactor/file-path-resolver/workflows/CI/badge.svg)

Resolves file paths by filtering and replacing tokens with values.

Expand Down