Skip to content

Commit 3225db4

Browse files
eric-therondnikic
authored andcommitted
move to github actions
1 parent f6f2fc3 commit 3225db4

File tree

3 files changed

+29
-13
lines changed

3 files changed

+29
-13
lines changed

.github/workflows/main.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Main
2+
on:
3+
push:
4+
pull_request:
5+
6+
jobs:
7+
tests:
8+
runs-on: "ubuntu-latest"
9+
name: "PHP ${{ matrix.php-version }} Unit Tests"
10+
strategy:
11+
matrix:
12+
php-version:
13+
- "7.4"
14+
- "8.0"
15+
- "8.1"
16+
steps:
17+
- name: "Checkout"
18+
uses: "actions/checkout@v2"
19+
- name: "Install PHP"
20+
uses: "shivammathur/setup-php@v2"
21+
with:
22+
coverage: "none"
23+
php-version: "${{ matrix.php-version }}"
24+
tools: composer:v2
25+
- name: "Install dependencies"
26+
run: "composer install --no-interaction --prefer-source --ignore-platform-reqs"
27+
- name: "PHPUnit"
28+
run: "php vendor/bin/phpunit"

.travis.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Build Status](https://travis-ci.org/ircmaxell/php-cfg.svg?branch=master)](https://travis-ci.org/ircmaxell/php-cfg)
1+
[![Build Status](https://github.com/ircmaxell/php-cfg/actions/workflows/main.yml/badge.svg)](https://github.com/ircmaxell/php-cfg/actions)
22
[![Latest Stable Version](https://poser.pugx.org/ircmaxell/php-cfg/v/stable)](https://packagist.org/packages/ircmaxell/php-cfg)
33

44
# PHP-CFG

0 commit comments

Comments
 (0)