Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI

on:
push:
branches:
- '**'
pull_request:
branches:
- '**'

jobs:
test:
name: PHP ${{ matrix.php-version }}
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
php-version:
- '8.3'
- '8.4'
- '8.5'

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

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

- name: Install dependencies
run: composer install --prefer-dist --no-progress

- name: Run tests
run: vendor/bin/phpunit -c tests --coverage-text



1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
composer.phar

/vendor/
.phpunit.result.cache
11 changes: 0 additions & 11 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
@@ -1,8 +1,8 @@
# Xi Netvisor

Netvisor API interface for PHP 5.3+.
Netvisor API interface for PHP 8.3+.

[![Build Status](https://secure.travis-ci.org/xi-project/xi-netvisor.png)](https://travis-ci.org/xi-project/xi-netvisor)
[![CI](https://github.com/xi-project/xi-netvisor/actions/workflows/ci.yml/badge.svg)](https://github.com/xi-project/xi-netvisor/actions/workflows/ci.yml)

## Interfaces

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
],

"require": {
"php": ">=7.2",
"php": ">=8.3",
"jms/serializer": "^3.11",
"guzzlehttp/guzzle": "^7.2"
},

"require-dev": {
"phpunit/phpunit": "^8.0"
"phpunit/phpunit": "^12.0"
},

"autoload": {
Expand Down
Loading
Loading