Skip to content

Commit 194741f

Browse files
committed
Updates
1 parent 6fd58d6 commit 194741f

File tree

2 files changed

+29
-11
lines changed

2 files changed

+29
-11
lines changed

.github/workflows/test.yml

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,53 +20,69 @@ jobs:
2020
- 3306:3306
2121
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
2222
runs-on: ${{ matrix.operating-system }}
23+
2324
steps:
2425
- name: Install aspell
2526
run: |
2627
sudo apt-get update
2728
sudo apt-get install -y aspell aspell-en
29+
2830
- name: Checkout
2931
uses: actions/checkout@v4
32+
3033
- name: Setup PHP
3134
uses: shivammathur/setup-php@v2
3235
with:
3336
php-version: ${{ matrix.php-version }}
3437
extensions: bcmath, ctype, fileinfo, json, mbstring, openssl, pdo, tokenizer, xml
3538
coverage: none
39+
3640
- name: Setup Node
3741
uses: actions/setup-node@v4
3842
with:
3943
node-version: 22
44+
4045
- name: Prepare the environment
41-
run: cp .env.testing .env
46+
run: |
47+
cp .env.testing .env
48+
echo "Environment file contents:"
49+
cat .env
50+
4251
- name: Get composer cache directory
4352
id: composer-cache
4453
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
54+
4555
- name: Setup composer cache
4656
uses: actions/cache@v3
4757
with:
4858
path: ${{ steps.composer-cache.outputs.dir }}
4959
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
5060
restore-keys: ${{ runner.os }}-composer-
61+
5162
- name: Install composer dependencies
5263
env:
5364
COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }}
5465
run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
66+
67+
- name: Generate autoloader in strict mode
68+
run: composer dump-autoload --strict-psr
69+
5570
- name: Generate application key
56-
run: php artisan key:generate
71+
run: php artisan key:generate --force --env=testing
72+
5773
- name: Build Assets
5874
run: npm install && npm run build
75+
76+
- name: Clear caches for testing
77+
run: |
78+
php artisan config:clear --env=testing
79+
php artisan cache:clear --env=testing
80+
5981
- name: Larastan
6082
run: ./vendor/bin/phpstan analyse
61-
- name: Clear config cache
62-
run: php artisan config:clear
63-
- name: Clear cache
64-
run: php artisan cache:clear
65-
- name: Clear caches
66-
run: php artisan optimize:clear
67-
- name: Cache config
68-
run: php artisan config:cache
83+
6984
- name: Spellcheck
7085
run: ./vendor/bin/peck
86+
7187
- name: Run tests
72-
run: php artisan test
88+
run: php artisan test --env=testing

phpstan-baseline.neon

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
parameters:
2+
ignoreErrors: []

0 commit comments

Comments
 (0)