Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

Commit b54dc01

Browse files
Merge branch 'main'
2 parents a1fea90 + 055935d commit b54dc01

File tree

7 files changed

+84
-56
lines changed

7 files changed

+84
-56
lines changed

.github/workflows/run-tests.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: run-tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: "0 0 * * *"
8+
9+
jobs:
10+
test:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
php: [8.0, 7.4, 7.3]
16+
laravel: [^8.0]
17+
dependency-version: [prefer-lowest, prefer-stable]
18+
os: [ubuntu-latest]
19+
20+
name: P${{ matrix.php }} - L${{ matrix.laravel }} ${{ matrix.dependency-version }} - ${{ matrix.os }}
21+
22+
steps:
23+
- name: Checkout code
24+
uses: actions/checkout@v2
25+
26+
- name: Cache dependencies
27+
uses: actions/cache@v1
28+
with:
29+
path: ~/.composer/cache/files
30+
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
31+
32+
- name: Setup PHP
33+
uses: shivammathur/setup-php@v2
34+
with:
35+
php-version: ${{ matrix.php }}
36+
extensions: json, dom, curl, libxml, mbstring, pdo, sqlite, pdo_sqlite
37+
coverage: none
38+
39+
- name: Install dependencies
40+
run: |
41+
composer require "illuminate/container:${{ matrix.laravel }}" "illuminate/contracts:${{ matrix.laravel }}" "illuminate/database:${{ matrix.laravel }}" --no-interaction --no-update
42+
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
43+
44+
- name: Execute tests
45+
run: vendor/bin/phpunit

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
composer.lock
33
.idea/
44
.phpunit.result.cache
5+
phpunit.xml

.travis.yml

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

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# Laravel Efficient UUIDs
22

3-
[![Build Status](https://travis-ci.org/michaeldyrynda/laravel-efficient-uuid.svg?branch=master)](https://travis-ci.org/michaeldyrynda/laravel-efficient-uuid)
4-
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/michaeldyrynda/laravel-efficient-uuid/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/michaeldyrynda/laravel-efficient-uuid/?branch=master)
5-
[![Code Coverage](https://scrutinizer-ci.com/g/michaeldyrynda/laravel-efficient-uuid/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/michaeldyrynda/laravel-efficient-uuid/?branch=master)
3+
[![Build Status](https://github.com/michaeldyrynda/laravel-nullable-fields/workflows/run-tests/badge.svg)](https://github.com/michaeldyrynda/laravel-nullable-fields/actions?query=workflow%3Arun-tests)
64
[![Latest Stable Version](https://poser.pugx.org/dyrynda/laravel-efficient-uuid/v/stable)](https://packagist.org/packages/dyrynda/laravel-efficient-uuid)
75
[![Total Downloads](https://poser.pugx.org/dyrynda/laravel-efficient-uuid/downloads)](https://packagist.org/packages/dyrynda/laravel-efficient-uuid)
86
[![License](https://poser.pugx.org/dyrynda/laravel-efficient-uuid/license)](https://packagist.org/packages/dyrynda/laravel-efficient-uuid)

composer.json

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@
1111
}
1212
],
1313
"require": {
14-
"php": "^7.2.5",
15-
"illuminate/container": "^7.0",
16-
"illuminate/contracts": "^7.0",
17-
"illuminate/database": "^7.0",
14+
"php": "^7.3|^8.0",
15+
"illuminate/container": "^8.12",
16+
"illuminate/contracts": "^8.12",
17+
"illuminate/database": "^8.12",
1818
"ramsey/uuid": "^4.1"
1919
},
2020
"require-dev": {
21-
"phpunit/phpunit": "^8.0",
22-
"mockery/mockery": "^1.2.3",
23-
"orchestra/testbench": "^5.0"
21+
"phpunit/phpunit": "^9.3",
22+
"mockery/mockery": "^1.4.2",
23+
"orchestra/testbench": "^6.0"
2424
},
2525
"autoload": {
2626
"psr-4": {
@@ -32,5 +32,9 @@
3232
"Tests\\": "tests/"
3333
}
3434
},
35-
"minimum-stability": "stable"
35+
"minimum-stability": "dev",
36+
"prefer-stable": true,
37+
"config": {
38+
"sort-packages": true
39+
}
3640
}

phpunit.xml

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

phpunit.xml.dist

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
backupGlobals="false"
5+
backupStaticAttributes="false"
6+
bootstrap="vendor/autoload.php"
7+
colors="true"
8+
convertErrorsToExceptions="true"
9+
convertNoticesToExceptions="true"
10+
convertWarningsToExceptions="true"
11+
processIsolation="false"
12+
stopOnFailure="false"
13+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
14+
>
15+
<coverage>
16+
<include>
17+
<directory suffix=".php">src/</directory>
18+
</include>
19+
</coverage>
20+
<testsuites>
21+
<testsuite name="Application Test Suite">
22+
<directory>./tests/</directory>
23+
</testsuite>
24+
</testsuites>
25+
</phpunit>

0 commit comments

Comments
 (0)