Skip to content

Commit

Permalink
Merge pull request #1 from elecena/add/XMLParser
Browse files Browse the repository at this point in the history
Initial commit of the xml-iterator library
  • Loading branch information
macbre authored Aug 4, 2023
2 parents e1eed64 + 6ed908e commit 0e2a081
Show file tree
Hide file tree
Showing 17 changed files with 2,074 additions and 1 deletion.
51 changes: 51 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Test

on:
push:
branches: [ "master" ]
pull_request:

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
# https://github.com/shivammathur/setup-php#tada-php-support
php-versions:
- '8.1'
- '8.2'
- '8.3' # nightly

steps:
- uses: actions/checkout@v3

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
# https://github.com/shivammathur/setup-php#heavy_plus_sign-php-extension-support
extensions: xml
coverage: xdebug

- name: Validate composer.json and composer.lock
run: composer validate --strict

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ matrix.php-versions }}-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-${{ matrix.php-versions }}
- name: Install dependencies
run: composer install --prefer-dist --no-progress

- name: Run test suite
run: composer run-script test
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
.idea/
/vendor/
.phpunit.result.cache
.phpunit.cache
11 changes: 10 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,14 @@
"email": "[email protected]"
}
],
"require": {}
"require": {
"ext-xml": "*",
"php": "^8.1"
},
"require-dev": {
"phpunit/phpunit": "^10.3"
},
"scripts": {
"test": "phpunit --testdox"
}
}
Loading

0 comments on commit 0e2a081

Please sign in to comment.