Skip to content

Commit

Permalink
Switched to GitHub Actions (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
buchwasa authored Dec 11, 2020
1 parent 39439a1 commit 3791b5d
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 22 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')"
strategy:
matrix:
php: ['7.2', '7.3', '7.4']
name: PHP ${{ matrix.php }}
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/[email protected]
with:
php-version: ${{ matrix.php }}
ini-values: xdebug.max_nesting_level=3000
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: "~/.composer/cache"
key: "php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}"
restore-keys: "php-${{ matrix.php }}-composer-"
- name: Install dependencies
run: composer install --prefer-dist --no-interaction
- name: Run PHPStan
run: ./vendor/bin/phpstan analyze --no-progress
- name: Run PHPUnit
run: ./vendor/bin/phpunit --bootstrap vendor/autoload.php --fail-on-warning tests/phpunit
21 changes: 0 additions & 21 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
@@ -1,4 +1,4 @@
# PocketMine-NBT
[![Build Status](https://travis-ci.org/pmmp/NBT.svg?branch=master)](https://travis-ci.org/pmmp/NBT)
![CI](https://github.com/pmmp/NBT/workflows/CI/badge.svg)

PHP library for working with Named Binary Tags

0 comments on commit 3791b5d

Please sign in to comment.