Merge pull request #13864 from marcusmoore/chore/sc-24012

Fixed GitHub Action tests for v7
This commit is contained in:
snipe 2023-11-13 16:34:35 +00:00 committed by GitHub
commit 442cad69a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 12 deletions

View file

@ -25,9 +25,8 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
php-version: php-version:
- "7.4" - "8.1"
- "8.0" - "8.2"
- "8.1.1"
name: PHP ${{ matrix.php-version }} name: PHP ${{ matrix.php-version }}
@ -58,11 +57,17 @@ jobs:
- name: Install Dependencies - name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Generate key - name: Setup Laravel
run: php artisan key:generate env:
DB_CONNECTION: mysql
- name: Directory Permissions DB_DATABASE: snipeit
run: chmod -R 777 storage bootstrap/cache DB_PORT: ${{ job.services.mysql.ports[3306] }}
DB_USERNAME: root
run: |
php artisan key:generate
php artisan migrate --force
php artisan passport:install
chmod -R 777 storage bootstrap/cache
- name: Execute tests (Unit and Feature tests) via PHPUnit - name: Execute tests (Unit and Feature tests) via PHPUnit
env: env:

View file

@ -17,7 +17,7 @@
} }
], ],
"require": { "require": {
"php": "8.0 - 8.2", "php": "^8.1",
"ext-curl": "*", "ext-curl": "*",
"ext-fileinfo": "*", "ext-fileinfo": "*",
"ext-json": "*", "ext-json": "*",

6
composer.lock generated
View file

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "6a7666957fcf514f54340bf80ad18726", "content-hash": "6f3c589a1c2a3a3dc24535abba26e1a6",
"packages": [ "packages": [
{ {
"name": "alek13/slack", "name": "alek13/slack",
@ -15699,7 +15699,7 @@
"prefer-stable": false, "prefer-stable": false,
"prefer-lowest": false, "prefer-lowest": false,
"platform": { "platform": {
"php": "8.0 - 8.2", "php": "^8.1",
"ext-curl": "*", "ext-curl": "*",
"ext-fileinfo": "*", "ext-fileinfo": "*",
"ext-json": "*", "ext-json": "*",
@ -15707,5 +15707,5 @@
"ext-pdo": "*" "ext-pdo": "*"
}, },
"platform-dev": [], "platform-dev": [],
"plugin-api-version": "2.3.0" "plugin-api-version": "2.6.0"
} }