fix: repair toss result test setup #34
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 | |
| permissions: | |
| contents: read | |
| env: | |
| node-dependencies-cache-name: cache-node-dependencies | |
| composer-packages-cache-name: cache-composer-packages | |
| jobs: | |
| pest: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| php-version: ['8.5'] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| tools: composer:v2 | |
| coverage: xdebug | |
| - name: Setup application | |
| run: | | |
| cp .env.ci .env | |
| - name: Add Flux license | |
| run: composer config http-basic.composer.fluxui.dev "${{ secrets.FLUX_USERNAME }}" "${{ secrets.FLUX_LICENSE_KEY }}" | |
| - name: Check for cached Composer packages | |
| id: cache-composer-packages | |
| uses: actions/cache@v5 | |
| with: | |
| path: ./vendor | |
| key: ${{ runner.os }}-php-${{ matrix.php-version }}-build-${{ env.composer-packages-cache-name }}-${{ hashFiles('**/composer.lock') }} | |
| - name: Install Composer dependencies | |
| if: steps.cache-composer-packages.outputs.cache-hit != 'true' | |
| run: composer install --no-interaction --prefer-dist --optimize-autoloader | |
| - name: Check for cached Node packages | |
| id: cache-node-packages | |
| uses: actions/cache@v5 | |
| with: | |
| path: ./node_modules | |
| key: ${{ runner.os }}-php-${{ matrix.php-version }}-build-${{ env.node-dependencies-cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
| - name: Install Node dependencies | |
| if: steps.cache-node-packages.outputs.cache-hit != 'true' | |
| run: npm install | |
| - name: Build artifacts | |
| run: npm run build | |
| - name: Tests | |
| run: ./vendor/bin/pest --compact |