Skip to content

Commit

Permalink
Fix unit tests (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
casperbiering authored Aug 29, 2022
1 parent 51ee69b commit a9e5d00
Show file tree
Hide file tree
Showing 11 changed files with 1,891 additions and 84 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI

on:
pull_request: null

jobs:
run:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest, windows-latest]
php-versions: ['7.3', '7.4', '8.0', '8.1']
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: xmlreader, xmlwriter, gmp, mbstring
tools: composer

- name: Install Dependencies
run: composer install --prefer-dist

- name: Run PHPUnit
run: ./vendor/bin/phpunit
56 changes: 51 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,52 @@
*~
/composer.lock
/*.komodoproject
/nbproject/
/phpunit.xml
# Created by https://www.toptal.com/developers/gitignore/api/composer,phpunit,visualstudiocode
# Edit at https://www.toptal.com/developers/gitignore?templates=composer,phpunit,visualstudiocode

### Composer ###
composer.phar
/vendor/

# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
# composer.lock

### PHPUnit ###
# Covers PHPUnit
# Reference: https://phpunit.de/

# Generated files
.phpunit.result.cache
.phpunit.cache

# PHPUnit
/app/phpunit.xml
/phpunit.xml

# Build data
/build/

### VisualStudioCode ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets

# Local History for Visual Studio Code
.history/

# Built Visual Studio Code Extensions
*.vsix

### VisualStudioCode Patch ###
# Ignore all local history of files
.history
.ionide

# Support for Project snippet scope
.vscode/*.code-snippets

# Ignore code-workspaces
*.code-workspace

# End of https://www.toptal.com/developers/gitignore/api/composer,phpunit,visualstudiocode
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"name": "casperbiering/dotnet-binary-xml",
"description": "Parsing and writing of .NET Binary Format",
"require": {
"php": ">=5.3",
"php": ">=7.3",
"ext-xmlreader": "*",
"ext-xmlwriter": "*",
"ext-gmp": "*",
"ext-mbstring": "*"
},
"require-dev": {
"phpunit/phpunit": "~4.8"
"phpunit/phpunit": "^9.5"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit a9e5d00

Please sign in to comment.