Skip to content

Commit a006ff5

Browse files
klimov-paulpionl
authored andcommitted
switch to GitHub actions
1 parent 37b20f1 commit a006ff5

File tree

9 files changed

+69
-23
lines changed

9 files changed

+69
-23
lines changed

.gitattributes

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
tests
2-
travis.yml
3-
.php_cs
4-
.phplint.yml
5-
phpunit.xml
6-
CODE_OF_CONDUCT.md
1+
# Ignore all test and documentation for archive
2+
/.github export-ignore
3+
/.gitattributes export-ignore
4+
/.gitignore export-ignore
5+
/.scrutinizer.yml export-ignore
6+
/phpunit.xml.dist export-ignore
7+
/tests export-ignore
8+
/docs export-ignore
9+
/.php_cs export-ignore
10+
/.phplint.yml export-ignore
11+
/CODE_OF_CONDUCT.md export-ignore

.github/ISSUE_TEMPLATE.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
### What steps will reproduce the problem?
2+
3+
### What is the expected result?
4+
5+
### What do you get instead?
6+
7+
### Additional info
8+
9+
| Q | A
10+
| ------------------------- | ---
11+
| This Package Version | 1.?.?
12+
| Laravel Framework Version | 9.?.?
13+
| PHP version |
14+
| Operating system |

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
| Q | A
2+
| ------------- | ---
3+
| Is bugfix? | ✔️/❌
4+
| New feature? | ✔️/❌
5+
| Breaks BC? | ✔️/❌
6+
| Tests pass? | ✔️/❌
7+
| Fixed issues | comma-separated list of tickets # fixed by the PR, if any

.github/workflows/build.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
phpunit:
7+
name: PHP ${{ matrix.php }} on ${{ matrix.os }}
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
os: [ubuntu-latest]
13+
php: ['7.2', '7.3', '7.4', '8.0', '8.1']
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
19+
- name: Install PHP
20+
uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: ${{ matrix.php }}
23+
extensions: mbstring
24+
tools: composer:v2
25+
coverage: none
26+
27+
- name: Install dependencies
28+
run: |
29+
composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
30+
31+
- name: Run unit tests
32+
run: vendor/bin/phpunit --verbose --colors=always

.travis.yml

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

config/chunk-upload.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<?php
2+
/**
3+
* @see https://github.com/pionl/laravel-chunk-upload
4+
*/
25

36
return [
47
/*
File renamed without changes.

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Laravel Chunk Upload
22

33
[![Total Downloads](https://poser.pugx.org/pion/laravel-chunk-upload/downloads?format=flat)](https://packagist.org/packages/pion/laravel-chunk-upload)
4-
[![Build Status](https://travis-ci.org/pionl/laravel-chunk-upload.svg?branch=master)](https://travis-ci.org/pionl/laravel-chunk-upload)
4+
[![Build Status](https://github.com/pionl/laravel-chunk-upload/workflows/build/badge.svg)](https://github.com/pionl/laravel-chunk-upload/actions)
55
[![Latest Stable Version](https://poser.pugx.org/pion/laravel-chunk-upload/v/stable?format=flat)](https://packagist.org/packages/pion/laravel-chunk-upload)
66
[![Latest Unstable Version](https://poser.pugx.org/pion/laravel-chunk-upload/v/unstable?format=flat)](https://packagist.org/packages/pion/laravel-chunk-upload)
77
[![License](https://poser.pugx.org/pion/laravel-chunk-upload/license)](https://packagist.org/packages/pion/laravel-chunk-upload)

tests/Providers/ChunkUploadServiceProviderMockTest.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,10 @@ class ChunkUploadServiceProviderMockTest extends Mockery\Adapter\Phpunit\Mockery
3939
*/
4040
protected $config;
4141

42-
public function __construct($name = null, array $data = [], $dataName = '')
43-
{
44-
parent::__construct($name, $data, $dataName);
45-
}
46-
4742
protected function setUp(): void
4843
{
4944
parent::setUp();
45+
5046
$this->app = Mockery::mock(\Illuminate\Contracts\Container\Container::class);
5147
$this->config = Mockery::mock(Repository::class);
5248

0 commit comments

Comments
 (0)