Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
934e383e86 | ||
|
|
217af75139 |
1
.github/workflows/test.yml
vendored
1
.github/workflows/test.yml
vendored
@@ -3,7 +3,6 @@ name: 'Action Test Apoloz'
|
|||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
|
|||||||
19
action.yml
19
action.yml
@@ -1,6 +1,6 @@
|
|||||||
name: Laravel Test Runner
|
name: Laravel Test Runner
|
||||||
author: apoloz
|
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:
|
branding:
|
||||||
color: 'purple'
|
color: 'purple'
|
||||||
@@ -24,16 +24,21 @@ runs:
|
|||||||
uses: http://10.55.5.123:3000/apoloz/setup-php@v2
|
uses: http://10.55.5.123:3000/apoloz/setup-php@v2
|
||||||
with:
|
with:
|
||||||
php-version: ${{ inputs.php-version }}
|
php-version: ${{ inputs.php-version }}
|
||||||
extensions: sqlite3, gd
|
extensions: sqlite3
|
||||||
env:
|
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
|
- name: Install Dependencies
|
||||||
env:
|
if: steps.cache-vendor.outputs.cache-hit != 'true' # Skip if cache hit
|
||||||
GH_TOKEN: ${{ vars.GHTKN }}
|
|
||||||
run: |
|
run: |
|
||||||
composer config -g github-oauth.github.com ${{ GH_TOKEN }}
|
composer install --no-progress --prefer-dist --optimize-autoloader
|
||||||
composer install --no-progress --prefer-source --optimize-autoloader
|
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Prepare
|
- name: Prepare
|
||||||
|
|||||||
Reference in New Issue
Block a user