Skip to content

Commit

Permalink
Fixes GitHub Actions and the supported version. (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
crynobone committed Jul 21, 2022
1 parent 53c818c commit 724557e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3,873 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ name: Tests

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

permissions:
contents: read
Expand All @@ -17,25 +15,29 @@ jobs:
fail-fast: true
matrix:
os: [ ubuntu-latest ]
php: [ 7.1, 7.2, 7.3, 7.4, 8.0, 8.1 ]
php: [ 7.3, 7.4, 8.0, 8.1 ]
stability: [ lowest, highest ]

steps:
- uses: actions/checkout@v3

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

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, mysql, mysqli, pdo_mysql, bcmath, intl, fileinfo
coverage: none


- name: Install dependencies
run: composer install --prefer-dist --no-progress
uses: "ramsey/composer-install@v1"
with:
dependency-versions: "${{ matrix.stability }}"
composer-options: "--prefer-dist --no-cache"


- name: Run test suite
run: composer run-script test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/vendor
/.idea
/build
/composer.lock
.phpunit.result.cache
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
],
"description": "Fast Excel import/export for Laravel",
"require": {
"php": "^7.1|^8.0",
"illuminate/support": "5.3.* || 5.4.* || 5.5.* || 5.6.* || 5.7.* || 5.8.* || ^6.0 || ^7.0 || ^8.0|^9.0",
"php": "^7.3 || ^8.0",
"illuminate/support": "5.3.* || 5.4.* || 5.5.* || 5.6.* || 5.7.* || 5.8.* || ^6.0 || ^7.0 || ^8.0 || ^9.0",
"openspout/openspout": "^3"
},
"require-dev": {
Expand Down
Loading

0 comments on commit 724557e

Please sign in to comment.