Skip to content

Commit

Permalink
Merge pull request #1 from audriga/rien-add-ci
Browse files Browse the repository at this point in the history
Add CI
  • Loading branch information
jaudriga authored Feb 7, 2024
2 parents 2750806 + 8f80fd6 commit b84e333
Show file tree
Hide file tree
Showing 3 changed files with 1,864 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Test

on:
pull_request:
push:
branches: [main]

jobs:
unit-tests:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: [8.1]
name: html2jsonld php ${{ matrix.php-versions }} unit tests
steps:
- name: Set up php${{ matrix.php-versions }}
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php-versions }}
- name: Checkout HTML2JSONLD-PHP
uses: actions/checkout@v3
- name: Install dependencies
run: composer install
- name: Run tests
run: vendor/bin/phpunit tests/unit
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# PHP CS Fixer files
.php_cs.cache

# PHP Unit cache files
.phpunit.result.cache

# Composer
vendor/

# PHPStorm files
.idea/

# Our build folders
build/
Loading

0 comments on commit b84e333

Please sign in to comment.