Skip to content
This repository has been archived by the owner on Oct 27, 2024. It is now read-only.

Commit

Permalink
Run tests via GitHub Actions
Browse files Browse the repository at this point in the history
spaze committed May 28, 2020
1 parent 6b67f8e commit 9f6127c
Showing 4 changed files with 39 additions and 21 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: PHP Tests

on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: OS info
run: cat /etc/os-release

- name: PHP info
run: |
php -v
php -m
- name: Install dependencies
run: composer install --no-progress --no-interaction

- name: Validate composer.json and composer.lock
run: composer validate --no-interaction

- name: Run tests
run: composer test-prod
19 changes: 0 additions & 19 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
@@ -2,7 +2,7 @@ VatCalculator
================

[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)
[![Build Status](https://travis-ci.org/mpociot/vat-calculator.svg)](https://travis-ci.org/mpociot/vat-calculator)
[![PHP Tests](https://github.com/spaze/vat-calculator/workflows/PHP%20Tests/badge.svg)](https://github.com/spaze/vat-calculator/actions?query=workflow%3A%22PHP+Tests%22)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/mpociot/vat-calculator/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/mpociot/vat-calculator/?branch=master)
[![codecov.io](https://codecov.io/github/mpociot/vat-calculator/coverage.svg?branch=master)](https://codecov.io/github/mpociot/vat-calculator?branch=master)
[![StyleCI](https://styleci.io/repos/41703624/shield)](https://styleci.io/repos/41703624)
11 changes: 10 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -29,6 +29,15 @@
},
"minimum-stability": "stable",
"scripts": {
"test": "vendor/phpunit/phpunit/phpunit"
"phpunit-dev": "php vendor/phpunit/phpunit/phpunit --colors=always --verbose",
"phpunit-prod-7.3": "php7.3 vendor/phpunit/phpunit/phpunit --colors=always --verbose",
"phpunit-prod-7.4": "php7.4 vendor/phpunit/phpunit/phpunit --colors=always --verbose",
"test": [
"@phpunit-dev"
],
"test-prod": [
"@phpunit-prod-7.3",
"@phpunit-prod-7.4"
]
}
}

0 comments on commit 9f6127c

Please sign in to comment.