Skip to content

Commit

Permalink
Merge pull request #63 from neighborhoods/BUPH-132-github-actions
Browse files Browse the repository at this point in the history
BUPH-132 | add tests via github actions
  • Loading branch information
jpmarcotte committed May 19, 2021
2 parents d4789c0 + 6275787 commit 19414a3
Show file tree
Hide file tree
Showing 3 changed files with 418 additions and 172 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: "Run Tests"

on: pull_request

jobs:
run_tests:
name: "Run Tests on PHP ${{ matrix.php_version }}"
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
os: [ubuntu-latest]
php_version: ['7.4', '8.0']
experimental: [false]
include:
- php_version: '7.2'
os: ubuntu-18.04
experimental: false
- php_version: '7.3'
os: ubuntu-18.04
experimental: false
- php_version: '8.1'
os: ubuntu-latest
experimental: true
steps:
- name: Checkout Code
uses: actions/checkout@v2

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

- name: Install Dependencies
run: composer install

- name: Run Tests
run: tests/run_tests
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
}
],
"require": {
"php": "^7.2",
"php": "^7.2 || ^8.0",
"ext-json": "*",
"ext-mbstring": "*",
"symfony/config": "^4.2",
Expand Down
Loading

0 comments on commit 19414a3

Please sign in to comment.