debug bmp in workflow #47
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Tests | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
# Step 1: Check out the repository | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
lfs: true | |
# Step 2: Set up PHP | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "8.2" | |
extensions: mbstring, dom, zip, fileinfo | |
# Step 3: Set up Git LFS | |
- name: Set up Git LFS | |
run: | | |
git lfs install | |
git lfs pull | |
# Step 4: List files in the repository | |
- name: List files | |
run: | | |
ls -lh tests/Stubs/ | |
file --mime-type tests/Stubs/* | |
# Step 5: Install LibreOffice (Required for Conversion) | |
- name: Install LibreOffice | |
run: sudo apt-get update && sudo apt-get install -y libreoffice | |
# Step 6: Install Composer dependencies | |
- name: Install dependencies | |
run: composer install --no-interaction --prefer-dist | |
# Step 7: Set up Laravel environment (if needed) | |
- name: Set up Laravel environment | |
run: | | |
echo "APP_KEY=$(php artisan key:generate --show)" > .env | |
echo "APP_ENV=testing" >> .env | |
echo "DB_CONNECTION=sqlite" >> .env | |
echo "LIBREOFFICE_PATH=/usr/bin/soffice" >> .env | |
# Step 8: Run Unit tests | |
- name: Run Unit tests | |
run: php ./vendor/bin/phpunit --testsuite=Unit | |
# Step 9: Run Integration tests (requires LibreOffice) | |
- name: Run Integration tests | |
run: php ./vendor/bin/phpunit --testsuite=Integration --testdox |