Skip to content

Commit

Permalink
Move from Travis to GH-Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
villfa committed Nov 25, 2020
1 parent 5e37dbb commit 5d38a2b
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 57 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-phar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: "Download Box"
run: |
curl -sL https://github.com/box-project/box/releases/download/3.8.5/box.phar -o box.phar
curl -sL https://github.com/box-project/box/releases/download/3.9.1/box.phar -o box.phar
chmod +x box.phar
- name: "Validate box configuration"
Expand All @@ -44,10 +44,10 @@ jobs:
run: ./box.phar compile

- name: "Test Version"
run: diff -w <(bin/churn -V) <(./churn.phar -V)
run: diff -u <(bin/churn -V) <(./churn.phar -V)

- name: "Test Phar"
run: diff -w <(bin/churn run src --format=csv | sort) <(./churn.phar run src --format=csv | sort)
run: diff -u <(bin/churn run src --format=csv | sort) <(./churn.phar run src --format=csv | sort)

- name: "Save Phar"
uses: actions/upload-artifact@v2
Expand Down
24 changes: 0 additions & 24 deletions .github/workflows/composer-normalize.yml

This file was deleted.

34 changes: 31 additions & 3 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ jobs:
os:
- ubuntu-latest
- windows-latest
composer:
- "v2"

steps:
- name: "Checkout"
Expand All @@ -37,7 +35,7 @@ jobs:
with:
coverage: "none"
php-version: "${{ matrix.php-version }}"
tools: composer:${{ matrix.composer }}
tools: composer:v2

- name: "Install dependencies"
run: "composer install --no-interaction --no-progress --prefer-dist"
Expand All @@ -47,3 +45,33 @@ jobs:

- name: "Run Churn"
run: "php bin/churn run src -p -vvv"

analysis:
name: "Static Analysis"
runs-on: ubuntu-latest

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

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "pcov"
php-version: "7.4"
tools: composer:v2, composer-normalize

- name: "Install dependencies"
run: "composer update --no-interaction --no-progress --prefer-dist"

- name: "Run tests"
run: "composer test-ci"

- name: "Normalize composer.json"
run: "composer-normalize --dry-run --no-check-lock --no-update-lock"

- uses: codecov/codecov-action@v1
with:
file: ./coverage.xml
fail_ci_if_error: true
verbose: true
26 changes: 0 additions & 26 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 @@
# churn-php
Helps discover good candidates for refactoring.

[![Build Status](https://travis-ci.org/bmitch/churn-php.svg?branch=master)](https://travis-ci.org/bmitch/churn-php)
[![Build Status](https://github.com/bmitch/churn-php/workflows/Continuous%20Integration/badge.svg)](https://github.com/bmitch/churn-php/actions)
[![codecov](https://codecov.io/gh/bmitch/churn-php/branch/master/graph/badge.svg)](https://codecov.io/gh/bmitch/churn-php)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/bmitch/churn-php/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/bmitch/churn-php/?branch=master)
[![Code Climate](https://codeclimate.com/github/bmitch/churn-php/badges/gpa.svg)](https://codeclimate.com/github/bmitch/churn-php)
Expand Down

0 comments on commit 5d38a2b

Please sign in to comment.