Skip to content

Commit

Permalink
feat(parser): add XML Template Parser (#1)
Browse files Browse the repository at this point in the history
Add XML Template Parser class with all initial dependencies.
  • Loading branch information
donatorsky committed May 9, 2021
1 parent 53559ed commit 5960df3
Show file tree
Hide file tree
Showing 62 changed files with 4,586 additions and 26 deletions.
86 changes: 63 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,76 @@
# This is a basic workflow to help you get started with Actions
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions

name: CI

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
push:
branches:
- main

# Allows you to run this workflow manually from the Actions tab
# Allows to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
strategy:
matrix:
operating-system:
- 'ubuntu-latest'
- 'windows-latest'
- 'macos-latest'

php-version:
- '7.4'
- '8.0'

dependencies:
- 'lowest'
- 'highest'

runs-on: ${{ matrix.operating-system }}
name: PHP ${{ matrix.php-version }} Test on ${{ matrix.operating-system }} with ${{ matrix.dependencies }} dependencies

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

# Runs a single command using the runners shell
- name: Run a one-line script
run: echo Hello, world!

# Runs a set of commands using the runners shell
- name: Run a multi-line script
run: |
echo Add other actions to build,
echo test, and deploy your project.
- name: Configure git to avoid issues with line endings
if: matrix.operating-system == 'windows-latest'
run: git config --global core.autocrlf false

- name: Checkout project files
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: xdebug
tools: composer:v2

- name: Validate composer.json
run: composer validate

- name: Cache Composer packages
id: composer-cache
uses: actions/[email protected]
with:
path: vendor
key: php-${{ matrix.php-version }}-dependencies-${{ matrix.dependencies }}-${{ hashFiles('**/composer.json') }}

- name: Install lowest dependencies
if: steps.composer-cache.outputs.cache-hit != 'true' && matrix.dependencies == 'lowest'
run: composer update --no-interaction --no-ansi --no-progress --no-scripts --optimize-autoloader --classmap-authoritative --prefer-lowest

- name: Install highest dependencies
if: steps.composer-cache.outputs.cache-hit != 'true' && matrix.dependencies == 'highest'
run: composer update --no-interaction --no-ansi --no-progress --no-scripts --optimize-autoloader --classmap-authoritative

- name: Check Code Style
run: composer lint:cs:check-all

- name: Run static analysis
run: composer lint:stan:analyse

- name: Run Unit tests
run: composer lint:test:unit
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# Composer
/vendor/
/composer.lock

# PHP CS Fixer
/.php-cs-fixer.php
/.php-cs-fixer.cache

# PHPStan
/phpstan.neon

# PHP Unit
/.phpunit.result.cache
Loading

0 comments on commit 5960df3

Please sign in to comment.