Skip to content

Commit

Permalink
- Replaced Travis CI & Circle CI configuration with Github Actions
Browse files Browse the repository at this point in the history
 + Removed Travis config
 + Removed styleci config
 + Added run-tests.yaml github action as replacement for our previous travis config
 + Added check-coding-standards.yaml github action as replacement for our previous styleci config
 + Changed Badges within our README.md to point towards our new github actions
  • Loading branch information
swatty007 committed Sep 26, 2023
1 parent ac4b5a6 commit c0dc6fc
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 30 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/check-coding-standards.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Code Analysis
on: [ push, pull_request ]

jobs:
coding-standards:
name: Coding Standards
runs-on: 'ubuntu-latest'

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

- name: Install PHP Dependencies
run: composer update

- name: Verify Coding Standards
run: vendor/bin/php-cs-fixer fix --diff --dry-run

29 changes: 29 additions & 0 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Test Suite
on: [ push, pull_request ]

jobs:
tests:
runs-on: 'ubuntu-latest'
strategy:
fail-fast: false
matrix:
php-versions: [ '8.1' ]
dependency-version: [ prefer-lowest, prefer-stable ]

name: Php-${{ matrix.php }} - ${{ matrix.dependency-version }}

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: xdebug

- name: Install PHP Dependencies
run: composer update

- name: Run Tests
run: vendor/bin/phpunit --coverage-text
7 changes: 0 additions & 7 deletions .styleci.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

[![Latest Version on Packagist](https://img.shields.io/packagist/v/swatty007/laravel-context-prohibited-rule.svg?style=flat-square)](https://packagist.org/packages/swatty007/laravel-context-prohibited-rule)
[![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](https://opensource.org/licenses/MIT)
[![Build Status](https://www.travis-ci.com/swatty007/laravel-context-prohibited-rule.svg?branch=main)](https://www.travis-ci.com/swatty007/laravel-context-prohibited-rule)
[![StyleCI](https://github.styleci.io/repos/339864266/shield?branch=main)](https://github.styleci.io/repos/339864266?branch=main)
[![Build Status](https://github.com/swatty007/laravel-context-prohibited-rule/actions/workflows/run-tests.yaml/badge.svg)](https://github.com/swatty007/laravel-context-prohibited-rule/actions/workflows/run-tests.yaml)
[![Code Style](https://github.com/swatty007/laravel-context-prohibited-rule/actions/workflows/check-coding-standards.yaml/badge.svg)](https://github.com/swatty007/laravel-context-prohibited-rule/actions/workflows/check-coding-standards.yaml)
[![Quality Score](https://img.shields.io/scrutinizer/g/swatty007/laravel-context-prohibited-rule.svg?style=flat-square)](https://scrutinizer-ci.com/g/swatty007/laravel-context-prohibited-rule)
[![Total Downloads](https://img.shields.io/packagist/dt/swatty007/laravel-context-prohibited-rule.svg?style=flat-square)](https://packagist.org/packages/swatty007/laravel-context-prohibited-rule)

Expand Down

0 comments on commit c0dc6fc

Please sign in to comment.