Update workflows
This commit is contained in:
parent
17edb6325e
commit
15b8e84f7e
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
@ -12,6 +12,9 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Add Flux Credentials Loaded From ENV
|
||||||
|
run: composer config http-basic.composer.fluxui.dev "${{ secrets.FLUX_USERNAME }}" "${{ secrets.FLUX_LICENSE_KEY }}"
|
||||||
|
|
||||||
- name: Install PHP dependencies
|
- name: Install PHP dependencies
|
||||||
run: composer install --no-interaction --prefer-dist --optimize-autoloader
|
run: composer install --no-interaction --prefer-dist --optimize-autoloader
|
||||||
|
|
||||||
|
20
.github/workflows/tests.yml
vendored
20
.github/workflows/tests.yml
vendored
@ -37,23 +37,5 @@ jobs:
|
|||||||
- name: Build Assets
|
- name: Build Assets
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
- name: Setup Test RSA Keys
|
|
||||||
run: |
|
|
||||||
echo "Setting up test RSA keys..."
|
|
||||||
mkdir -p storage/testing/oauth
|
|
||||||
php artisan app:generate-keys --path="storage/testing/oauth"
|
|
||||||
echo "✅ Test keys generated"
|
|
||||||
|
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: ./vendor/bin/pest
|
run: ./vendor/bin/pest
|
||||||
|
|
||||||
- name: Cleanup Test Keys
|
|
||||||
if: always()
|
|
||||||
run: |
|
|
||||||
echo "Cleaning up test RSA keys..."
|
|
||||||
if [ -d "storage/testing" ]; then
|
|
||||||
rm -rf storage/testing
|
|
||||||
echo "✅ Test storage directory cleaned up"
|
|
||||||
else
|
|
||||||
echo "ℹ️ No test storage directory found to clean up"
|
|
||||||
fi
|
|
Loading…
x
Reference in New Issue
Block a user