Skip to content

Commit be4113c

Browse files
authored
Merge pull request #16 from tattersoftware/refactor
Refactor
2 parents b2e3613 + b2e87ae commit be4113c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+621
-3027
lines changed

.github/workflows/analyze.yml

Lines changed: 0 additions & 68 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 9 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1-
name: PHP Unit Tests
1+
name: Tests
22

33
on:
44
pull_request:
5-
branches:
5+
branches:
6+
- develop
7+
push:
8+
branches:
69
- develop
710

811
jobs:
912
main:
10-
name: Build and test
11-
12-
strategy:
13-
matrix:
14-
php-versions: ['7.3', '7.4']
13+
name: Unit Tests
1514

1615
runs-on: ubuntu-latest
1716

@@ -21,29 +20,7 @@ jobs:
2120
- name: Checkout
2221
uses: actions/checkout@v2
2322

24-
- name: Setup PHP, with composer and extensions
25-
uses: shivammathur/setup-php@master
26-
with:
27-
php-version: ${{ matrix.php-versions }}
28-
tools: composer, pecl, phpunit
29-
extensions: intl, json, mbstring, mysqlnd, xdebug, xml, sqlite3
30-
coverage: xdebug
31-
32-
- name: Get composer cache directory
33-
id: composer-cache
34-
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
35-
36-
- name: Cache composer dependencies
37-
uses: actions/cache@v2
38-
with:
39-
path: ${{ steps.composer-cache.outputs.dir }}
40-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
41-
restore-keys: ${{ runner.os }}-composer-
42-
43-
- name: Install dependencies
44-
run: composer install --no-progress --no-suggest --no-interaction --prefer-dist --optimize-autoloader
23+
- name: Run Test Suite
24+
run: tests/run
4525
env:
46-
COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }}
47-
48-
- name: Test with phpunit
49-
run: vendor/bin/phpunit --coverage-text
26+
TERM: xterm-256color

0 commit comments

Comments
 (0)