Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/stable'
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps committed Dec 11, 2020
2 parents 7f715bd + 3791b5d commit 0671915
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 28 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 the NBT (Named Binary Tag) data storage format, as designed by Mojang.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"pocketmine/binaryutils": "dev-master"
},
"require-dev": {
"phpstan/phpstan": "0.12.40",
"phpstan/phpstan": "0.12.59",
"irstea/phpunit-shim": "^7.5 || ^8.0",
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan-strict-rules": "^0.12.4"
Expand Down
5 changes: 0 additions & 5 deletions tests/phpstan/configs/phpstan-bugs.neon
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
parameters:
ignoreErrors:
-
message: "#^Call to function assert\\(\\) with bool will always evaluate to true\\.$#"
count: 2
path: ../../../src/tag/CompoundTag.php

-
message: "#^Call to function is_int\\(\\) with int will always evaluate to true\\.$#"
count: 1
Expand Down

0 comments on commit 0671915

Please sign in to comment.