Skip to content

Commit 97c8672

Browse files
committed
Merge branch 'master' of https://github.com/tithely/picomapper
2 parents 00cf1d2 + 7a56681 commit 97c8672

File tree

2 files changed

+46
-15
lines changed

2 files changed

+46
-15
lines changed

.github/workflows/tests.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Run Tests
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
test:
11+
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 10
14+
strategy:
15+
matrix:
16+
php-versions: [ '7.0', '7.1', '7.2', '7.3', '7.4' ]
17+
name: PHP ${{ matrix.php-versions }}
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
name: Check Out Code
22+
23+
- name: Setup PHP
24+
uses: shivammathur/setup-php@v2
25+
with:
26+
php-version: ${{ matrix.php-versions }}
27+
extensions: pdo_sqlite
28+
29+
- name: Validate composer.json and composer.lock
30+
run: composer validate
31+
32+
- name: Cache Composer packages
33+
id: composer-cache
34+
uses: actions/cache@v2
35+
with:
36+
path: vendor
37+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
38+
restore-keys: |
39+
${{ runner.os }}-composer-
40+
41+
- name: Install dependencies
42+
if: steps.composer-cache.outputs.cache-hit != 'true'
43+
run: composer install --prefer-dist --no-progress --no-suggest
44+
45+
- name: Run test suite
46+
run: ./vendor/bin/phpunit

.travis.yml

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

0 commit comments

Comments
 (0)