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

Commit

Permalink
Merge 639955a into 4372483
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Nov 24, 2020
2 parents 4372483 + 639955a commit c3dd903
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 5 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Test

on: [push, pull_request]

env:
FORCE_COLOR: 1

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
php-version: ["7.1", "7.2", "7.3", "7.4"]
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v2

- name: Set up PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}

- name: Install dependencies
run: |
composer self-update
composer install
- name: Tests
shell: bash
run: |
composer ci
- name: Upload coverage results to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
mkdir -p build/logs
cp tests/_output/coverage.xml build/logs/clover.xml
composer global require php-coveralls/php-coveralls
php-coveralls --coverage_clover=build/logs/clover.xml -v
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ before_script:
- composer install

script:
- composer travis
- composer ci

after_success:
- |
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Lumen CORS

[![Build Status](https://travis-ci.org/digiaonline/lumen-cors.svg?branch=master)](https://travis-ci.org/digiaonline/lumen-cors)
[![GitHub Actions status](https://github.com/digiaonline/lumen-cors/workflows/Test/badge.svg)](https://github.com/digiaonline/lumen-cors/actions)
[![Coverage Status](https://coveralls.io/repos/github/nordsoftware/lumen-cors/badge.svg?branch=master)](https://coveralls.io/github/nordsoftware/lumen-cors?branch=master)
[![Code Climate](https://codeclimate.com/github/nordsoftware/lumen-cors/badges/gpa.svg)](https://codeclimate.com/github/nordsoftware/lumen-cors)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/digiaonline/lumen-cors/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/digiaonline/lumen-cors/?branch=master)
Expand Down
4 changes: 2 additions & 2 deletions RELEASING.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Release checklist

* [ ] Get master to the appropriate code release state.
[Travis CI](https://travis-ci.org/digiaonline/lumen-cors)
[GitHub Actions](https://github.com/digiaonline/lumen-cors/actions)
should be running cleanly for all merges to master.
[![Build Status](https://travis-ci.org/digiaonline/lumen-cors.svg?branch=master)](https://travis-ci.org/digiaonline/lumen-cors)
[![GitHub Actions status](https://github.com/digiaonline/lumen-cors/workflows/Test/badge.svg)](https://github.com/digiaonline/lumen-cors/actions)

* [ ] Update the CHANGELOG:

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"codecept run",
"phpstan analyse src/"
],
"travis": [
"ci": [
"codecept run --coverage --report --coverage-xml",
"phpstan analyse src/"
]
Expand Down

0 comments on commit c3dd903

Please sign in to comment.