Repository navigation
Upgrade biigle/laravel-file-cache to v6 #2997
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: Tests | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths-ignore: | |
| - '.docker/**' | |
| - 'resources/assets/**' | |
| - 'resources/scripts/**' | |
| - 'storage/**' | |
| - 'package.json' | |
| - 'package-lock.json' | |
| pull_request: | |
| paths-ignore: | |
| - '.docker/**' | |
| - 'resources/assets/**' | |
| - 'resources/scripts/**' | |
| - 'storage/**' | |
| - 'package.json' | |
| - 'package-lock.json' | |
| jobs: | |
| test-current: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.5' | |
| - uses: actions/checkout@v1 | |
| with: | |
| fetch-depth: 1 | |
| - name: Validate composer.json and composer.lock | |
| run: composer validate | |
| - name: Copy .env | |
| run: cp .env.example .env | |
| - name: Update .env | |
| run: | | |
| echo USER_ID=$(id -u) >> .env | |
| echo GROUP_ID=$(id -g) >> .env | |
| - name: Set testing key | |
| run: echo "APP_KEY=base64:STZFA4bQKDjE2mlpRPmsJ/okG0eCh4RHd9BghtZeYmQ=" >> .env | |
| - name: Install Dependencies | |
| run: composer install --no-ansi --no-interaction --no-scripts --no-suggest --prefer-dist --ignore-platform-req=ext-pgsql --ignore-platform-req=ext-soap --ignore-platform-req=ext-zip --ignore-platform-req=ext-redis | |
| - name: Install aws dependency | |
| run: composer require --ignore-platform-req=ext-pgsql --ignore-platform-req=ext-soap --ignore-platform-req=ext-zip --ignore-platform-req=ext-redis league/flysystem-aws-s3-v3 | |
| - name: Fetch base images | |
| run: | | |
| docker pull ghcr.io/biigle/app:latest | |
| docker pull ghcr.io/biigle/worker:latest | |
| docker pull ghcr.io/biigle/pgvector:latest | |
| - name: Start test database | |
| run: | | |
| docker compose up -d --no-build database_testing | |
| sleep 5 | |
| - name: Run tests | |
| run: docker compose run --rm worker php artisan test --parallel | |
| test-modules: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.5' | |
| - uses: actions/checkout@v1 | |
| with: | |
| ref: dev-modules | |
| fetch-depth: 1 | |
| - name: Validate composer.json and composer.lock | |
| run: composer validate | |
| - name: Copy .env | |
| run: cp .env.example .env | |
| - name: Update .env | |
| run: | | |
| echo USER_ID=$(id -u) >> .env | |
| echo GROUP_ID=$(id -g) >> .env | |
| - name: Set testing key | |
| run: echo "APP_KEY=base64:STZFA4bQKDjE2mlpRPmsJ/okG0eCh4RHd9BghtZeYmQ=" >> .env | |
| - name: Install Dependencies | |
| run: composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist --ignore-platform-req=ext-pgsql --ignore-platform-req=ext-soap --ignore-platform-req=ext-zip --ignore-platform-req=ext-redis | |
| - name: Remove BIIGLE modules | |
| run: rm -r vendor/biigle | |
| - name: Update BIIGLE modules from source | |
| run: composer update --no-ansi --no-interaction --no-scripts --no-suggest --prefer-source --ignore-platform-req=ext-pgsql --ignore-platform-req=ext-soap --ignore-platform-req=ext-zip --ignore-platform-req=ext-redis biigle/* | |
| - name: Fetch base images | |
| run: | | |
| docker pull ghcr.io/biigle/app:latest | |
| docker pull ghcr.io/biigle/worker:latest | |
| docker pull ghcr.io/biigle/pgvector:latest | |
| - name: Start test database | |
| run: | | |
| docker compose up -d --no-build database_testing | |
| sleep 5 | |
| - name: Run tests | |
| run: docker compose run --rm worker php artisan test --parallel |