Skip to content

Commit

Permalink
Merge pull request #4 from JustIversen/github-actions
Browse files Browse the repository at this point in the history
Create php.yml
  • Loading branch information
KristianI committed Dec 15, 2020
2 parents 769a68d + fca2ead commit 6668db7
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 6,417 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: PHP Composer

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [7.4, 8.0]

steps:
- uses: actions/checkout@v2

- name: Validate composer.json and composer.lock
run: composer validate

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --prefer-dist --no-progress --no-suggest

- name: Run test suite
run: composer run-script test
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
vendor
.phpunit.result.cache
.phpunit.result.cache
composer.lock
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
![Packagist Downloads](https://img.shields.io/packagist/dt/JustIversen/laravel-job-chainer)
![Code size](https://img.shields.io/github/languages/code-size/JustIversen/laravel-job-chainer)
![Build Status](https://img.shields.io/github/workflow/status/JustIversen/laravel-job-chainer/PHP%20Composer)

# Laravel Job Chainer

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
}
],
"require": {
"php": "^8.0"
"php": "^7.4|^8.0"
},
"require-dev": {
"orchestra/testbench": "^6.6",
"phpunit/phpunit": "^9.3"
"orchestra/testbench": "^4.0|^6.6",
"phpunit/phpunit": "^8.0|^9.3"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit 6668db7

Please sign in to comment.