3 Commits
main ... v1.1.9

Author SHA1 Message Date
Anatoliy Poloz
ba2012f7ed composer version specified 2023-12-13 14:44:55 +03:00
Anatoliy Poloz
934e383e86 vendor cache added 2023-12-13 13:50:15 +03:00
Anatoliy Poloz
217af75139 action.yml 2023-12-12 14:17:09 +03:00
2 changed files with 13 additions and 8 deletions

View File

@@ -3,7 +3,6 @@ name: 'Action Test Apoloz'
on:
pull_request:
workflow_dispatch:
push:
jobs:
test:

View File

@@ -1,6 +1,6 @@
name: Laravel Test Runner
author: apoloz
description: "This action will run your Laravel application's test suite. v2.2.1"
description: "This action will run your Laravel application's test suite. v2"
branding:
color: 'purple'
@@ -24,16 +24,22 @@ runs:
uses: http://10.55.5.123:3000/apoloz/setup-php@v2
with:
php-version: ${{ inputs.php-version }}
extensions: sqlite3, gd
extensions: sqlite3
tools: composer:v2
env:
GITHUB_TOKEN: ${{ vars.GHTKN }}
GITHUB_TOKEN: ${{ secrets.GHTKN }}
- name: Cache Vendor
id: cache-vendor
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-vendor-${{ hashFiles('**/composer.lock') }}
- name: Install Dependencies
env:
GH_TOKEN: ${{ vars.GHTKN }}
if: steps.cache-vendor.outputs.cache-hit != 'true' # Skip if cache hit
run: |
composer config -g github-oauth.github.com ${{ GH_TOKEN }}
composer install --no-progress --prefer-source --optimize-autoloader
composer install --no-progress --prefer-dist --optimize-autoloader
shell: bash
- name: Prepare