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

Commit

Permalink
Migrate master from Travis-CI to GitHub Actions
Browse files Browse the repository at this point in the history
Travis-CI closed its services for open source projects in 2021.
  • Loading branch information
mdio committed Jul 6, 2022
1 parent b6b8ec5 commit 120ca33
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 23 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: tests

on:
push:
branches: [ 2.x, master ]
pull_request:
branches: [ 2.x, master ]

jobs:
tests:
strategy:
matrix:
php-versions: ['7.3', '7.4']

runs-on: ubuntu-latest

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

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

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
uses: php-actions/composer@v6
with:
version: 2
php_version: ${{ matrix.php-versions }}

- name: Run test suite
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
Expand Up @@ -2,7 +2,7 @@

Ported from [node-semver 1.1.2](https://github.com/isaacs/node-semver/tree/v1.1.2) to PHP

[![Build Status](https://secure.travis-ci.org/vierbergenlars/php-semver.png?branch=master)](http://travis-ci.org/vierbergenlars/php-semver)
[![Build Status](https://github.com/vierbergenlars/php-semver/actions/workflows/tests.yml/badge.svg)](https://github.com/vierbergenlars/php-semver/actions/workflows/tests.yml)
[![Scrutinizer Quality Score](https://scrutinizer-ci.com/g/vierbergenlars/php-semver/badges/quality-score.png?s=89ff49019cde97e70228ae14d2dc08b727e72157)](https://scrutinizer-ci.com/g/vierbergenlars/php-semver/)
[![Latest Stable Version](https://poser.pugx.org/vierbergenlars/php-semver/v/stable.png)](https://packagist.org/packages/vierbergenlars/php-semver)
[![Total Downloads](https://poser.pugx.org/vierbergenlars/php-semver/downloads.png)](https://packagist.org/packages/vierbergenlars/php-semver)
Expand Down

0 comments on commit 120ca33

Please sign in to comment.