Skip to content
Merged
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
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.{yml,yaml}]
indent_size = 2
14 changes: 10 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
name: CI

on:
push:
branches: [main]
pull_request: null
workflow_dispatch: 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']
php-versions: ['7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -23,7 +26,10 @@ jobs:
tools: composer

- name: Install Dependencies
run: composer install --prefer-dist
run: composer install --prefer-dist --no-interaction --no-progress

- name: Validate Composer Metadata
run: composer validate --strict --no-check-publish

- name: Run PHPUnit
run: ./vendor/bin/phpunit
run: composer test
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# dotnet-binary-xml

[![Build Status](https://travis-ci.org/casperbiering/dotnet-binary-xml.png?branch=master)](https://travis-ci.org/casperbiering/dotnet-binary-xml)
[![CI](https://github.com/casperbiering/dotnet-binary-xml/actions/workflows/ci.yaml/badge.svg?branch=main)](https://github.com/casperbiering/dotnet-binary-xml/actions/workflows/ci.yaml)

**dotnet-binary-xml** is a PHP implementation of the [.NET Binary Format: XML Data Structure (MC-NBFX)](http://msdn.microsoft.com/en-us/library/cc219210.aspx).

Expand Down
22 changes: 21 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,29 @@
},
"autoload-dev": {
"psr-4": {
"CasperBiering\\Dotnet\\Tests\\": "src/"
"CasperBiering\\Dotnet\\Tests\\": "tests/"
}
},
"scripts": {
"test": "phpunit",
"lint": [
"@php -l src/BinaryXml.php",
"@php -l src/BinaryXml/Encoder.php",
"@php -l src/BinaryXml/Decoder.php",
"@php -l src/BinaryXml/SoapEncoder.php",
"@php -l src/BinaryXml/SoapDecoder.php",
"@php -l src/BinaryXml/Constants.php",
"@php -l src/BinaryXml/SoapConstants.php",
"@php -l src/BinaryXml/DecodingException.php",
"@php -l src/BinaryXml/EncodingException.php",
"@php -l tests/BinaryXml/DecoderTest.php",
"@php -l tests/BinaryXml/EncoderTest.php",
"@php -l tests/BinaryXml/TwoWayTest.php",
"@php -l tests/BinaryXml/SoapDecoderTest.php",
"@php -l tests/BinaryXml/SoapEncoderTest.php",
"@php -l decode.php"
]
},
"license": "MIT",
"authors": [
{
Expand Down
Loading
Loading