Skip to content

Commit

Permalink
Merge pull request #18 from northernco/automated-testing
Browse files Browse the repository at this point in the history
Automated testing
  • Loading branch information
cpkdevries committed Oct 18, 2023
2 parents 9881189 + 2db72bb commit bd7a5d7
Show file tree
Hide file tree
Showing 248 changed files with 1,934 additions and 5,589 deletions.
469 changes: 0 additions & 469 deletions .editorconfig

Large diffs are not rendered by default.

50 changes: 50 additions & 0 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Tests

on:
push:
pull_request:

defaults:
run:
shell: bash

jobs:
test:
runs-on: ubuntu-22.04

strategy:
matrix:
php: ['8.0', '8.1', '8.2']

steps:
- name: Checkout
uses: actions/checkout@v2

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

- name: Display versions
run: |
php -r 'foreach (get_loaded_extensions() as $extension) echo $extension . " " . phpversion($extension) . PHP_EOL;'
php -i
- name: Validate composer.json
run: composer validate --strict

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

- name: Run test suite
run: vendor/bin/phpunit --verbose
12 changes: 2 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
nbproject/
catalog.xml
/vendor
/vendor/
/.phpunit.result.cache
/composer.lock
/phpunit.xml
/composer.phar
*~
*.orig
.buildpath
.project
.settings/
.idea
45 changes: 0 additions & 45 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit bd7a5d7

Please sign in to comment.